<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: What on Earth does a double underscore then parenthesis mean in PHP? __()</title>
	<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/</link>
	<description>Web Publishing Techniques</description>
	<pubDate>Tue, 07 Feb 2012 21:11:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: Eat My Business &#187; Blog Archive &#187; What on Earth does a single underscore then parenthesis mean in PHP? __()</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-32</link>
		<author>Eat My Business &#187; Blog Archive &#187; What on Earth does a single underscore then parenthesis mean in PHP? __()</author>
		<pubDate>Sun, 22 Jul 2007 19:22:50 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-32</guid>
					<description>[...] Further to my previous post on the double underscore __() &#8230; [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Further to my previous post on the double underscore __() &#8230; [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-11153</link>
		<author>Jeremy</author>
		<pubDate>Sat, 14 Mar 2009 12:24:46 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-11153</guid>
					<description>Thank you! As someone who writes plugins and hacks the code for wordpress (from time to time as needed), it can be really hard to find someone who knows the answers to tough Wordpress questions (there are less advanced coder types than not after all).

Your post saved me a bunch of searching, thanks!</description>
		<content:encoded><![CDATA[<p>Thank you! As someone who writes plugins and hacks the code for wordpress (from time to time as needed), it can be really hard to find someone who knows the answers to tough Wordpress questions (there are less advanced coder types than not after all).</p>
<p>Your post saved me a bunch of searching, thanks!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: truetone</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-14460</link>
		<author>truetone</author>
		<pubDate>Wed, 17 Jun 2009 19:50:29 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-14460</guid>
					<description>The CakePHP framework uses it too. Initially, I'd thought it was a sort of shortcut for echo or print, but interestingly enough, it's a lot more. Thanks for the explanation.</description>
		<content:encoded><![CDATA[<p>The CakePHP framework uses it too. Initially, I&#8217;d thought it was a sort of shortcut for echo or print, but interestingly enough, it&#8217;s a lot more. Thanks for the explanation.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Eduardo Baldan</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17619</link>
		<author>Eduardo Baldan</author>
		<pubDate>Tue, 22 Sep 2009 23:01:29 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17619</guid>
					<description>Thanks mate! I was trying to figure out what the @@&#38;%* was those underscores.
I think it should be better explained on codex.

[]'s!</description>
		<content:encoded><![CDATA[<p>Thanks mate! I was trying to figure out what the @@&amp;%* was those underscores.<br />
I think it should be better explained on codex.</p>
<p>[]&#8217;s!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: jeff</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17631</link>
		<author>jeff</author>
		<pubDate>Tue, 03 Nov 2009 02:54:58 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17631</guid>
					<description>thanks - i couldn't figure out what the double underscore was doing</description>
		<content:encoded><![CDATA[<p>thanks - i couldn&#8217;t figure out what the double underscore was doing</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: darky</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17639</link>
		<author>darky</author>
		<pubDate>Sat, 07 Nov 2009 16:52:27 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17639</guid>
					<description>I was weired, when I saw this in wordpress, too.
But searching in google only for "php __", the first results gave me the answer.
But just your blog gave me the answer that is is user-defined^^
Thx!</description>
		<content:encoded><![CDATA[<p>I was weired, when I saw this in wordpress, too.<br />
But searching in google only for &#8220;php __&#8221;, the first results gave me the answer.<br />
But just your blog gave me the answer that is is user-defined^^<br />
Thx!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: César Salazar</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17645</link>
		<author>César Salazar</author>
		<pubDate>Sun, 22 Nov 2009 05:08:08 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17645</guid>
					<description>Thanks! I've always wondered what's with the double underscore.</description>
		<content:encoded><![CDATA[<p>Thanks! I&#8217;ve always wondered what&#8217;s with the double underscore.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Anca</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17852</link>
		<author>Anca</author>
		<pubDate>Thu, 07 Jan 2010 00:26:05 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17852</guid>
					<description>Wow, thank so much for this post.  You've saved me a lot of searching.</description>
		<content:encoded><![CDATA[<p>Wow, thank so much for this post.  You&#8217;ve saved me a lot of searching.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Emmanuel</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17907</link>
		<author>Emmanuel</author>
		<pubDate>Sun, 07 Feb 2010 10:07:27 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17907</guid>
					<description>Thanks too, I was contracted to write my first wordpress widget and those __(something) was really bugging me because I kept wondering if there was some obscure PHP language construct I've been missing for years.</description>
		<content:encoded><![CDATA[<p>Thanks too, I was contracted to write my first wordpress widget and those __(something) was really bugging me because I kept wondering if there was some obscure PHP language construct I&#8217;ve been missing for years.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: timemachine</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17973</link>
		<author>timemachine</author>
		<pubDate>Mon, 19 Apr 2010 03:42:37 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17973</guid>
					<description>not sure if this is relevant after all this time but FYI ..

from the website :
http://webdevelopmenttutorials.com/phpvariablestutorial.php

Magic Constants 
Magic constants, as they are called, are not acutally constants but effectively behave like constants and are pre-defined. Magic constants use the same naming convention as PHP constants. 

The full list of magic constants can be found here. 

There are 7 magic constants that change depending on where they are used. They are listed below. 

name  description  
__LINE__  The current line number of the file.  
__FILE__  The full path and filename of the file. If used inside an include, the name of the included file is returned. Since PHP 4.0.2, __FILE__ always contains an absolute path with symlinks resolved whereas in older versions it contained relative path under some circumstances.  
__DIR__  The directory of the file. If used inside an include, the directory of the included file is returned. This is equivalent to dirname(__FILE__). This directory name does not have a trailing slash unless it is the root directory. (Added in PHP 5.3.0.)  
__FUNCTION__  The function name. (Added in PHP 4.3.0) As of PHP 5 this constant returns the function name as it was declared (case-sensitive). In PHP 4 its value is always lowercased.  
__CLASS__  The class name. (Added in PHP 4.3.0) As of PHP 5 this constant returns the class name as it was declared (case-sensitive). In PHP 4 its value is always lowercased.  
__METHOD__  The class method name. (Added in PHP 5.0.0) The method name is returned as it was declared (case-sensitive).  
__NAMESPACE__  The name of the current namespace (case-sensitive). This constant is defined in compile-time (Added in PHP 5.3.0).</description>
		<content:encoded><![CDATA[<p>not sure if this is relevant after all this time but FYI ..</p>
<p>from the website :<br />
<a href="http://webdevelopmenttutorials.com/phpvariablestutorial.php" rel="nofollow">http://webdevelopmenttutorials.com/phpvariablestutorial.php</a></p>
<p>Magic Constants<br />
Magic constants, as they are called, are not acutally constants but effectively behave like constants and are pre-defined. Magic constants use the same naming convention as PHP constants. </p>
<p>The full list of magic constants can be found here. </p>
<p>There are 7 magic constants that change depending on where they are used. They are listed below. </p>
<p>name  description<br />
__LINE__  The current line number of the file.<br />
__FILE__  The full path and filename of the file. If used inside an include, the name of the included file is returned. Since PHP 4.0.2, __FILE__ always contains an absolute path with symlinks resolved whereas in older versions it contained relative path under some circumstances.<br />
__DIR__  The directory of the file. If used inside an include, the directory of the included file is returned. This is equivalent to dirname(__FILE__). This directory name does not have a trailing slash unless it is the root directory. (Added in PHP 5.3.0.)<br />
__FUNCTION__  The function name. (Added in PHP 4.3.0) As of PHP 5 this constant returns the function name as it was declared (case-sensitive). In PHP 4 its value is always lowercased.<br />
__CLASS__  The class name. (Added in PHP 4.3.0) As of PHP 5 this constant returns the class name as it was declared (case-sensitive). In PHP 4 its value is always lowercased.<br />
__METHOD__  The class method name. (Added in PHP 5.0.0) The method name is returned as it was declared (case-sensitive).<br />
__NAMESPACE__  The name of the current namespace (case-sensitive). This constant is defined in compile-time (Added in PHP 5.3.0).</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17990</link>
		<author>Josh</author>
		<pubDate>Fri, 23 Apr 2010 14:17:25 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-17990</guid>
					<description>If you're looking for syntax information about the use of the __() function in WordPress, you can find it here:

http://codex.wordpress.org/Function_Reference/_2</description>
		<content:encoded><![CDATA[<p>If you&#8217;re looking for syntax information about the use of the __() function in WordPress, you can find it here:</p>
<p><a href="http://codex.wordpress.org/Function_Reference/_2" rel="nofollow">http://codex.wordpress.org/Function_Reference/_2</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-18208</link>
		<author>Steve</author>
		<pubDate>Wed, 25 Aug 2010 10:03:26 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-18208</guid>
					<description>Doh! I actually read this in the Wordpress bible, and then forgot! Thanks to your post I re-discovered the answer. Nice bit of digging :-)</description>
		<content:encoded><![CDATA[<p>Doh! I actually read this in the Wordpress bible, and then forgot! Thanks to your post I re-discovered the answer. Nice bit of digging :-)</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Chris Heney</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-18261</link>
		<author>Chris Heney</author>
		<pubDate>Mon, 06 Sep 2010 14:05:24 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-18261</guid>
					<description>I was able to get lucky with googling for: wordpress double underscore and your site came up... I have always wondered that myself.

When making your own plugins you may also use the built in function called load_plugin_textdomain($path_to_lang_files);

The language files can be .mo / .po / .pot files.</description>
		<content:encoded><![CDATA[<p>I was able to get lucky with googling for: wordpress double underscore and your site came up&#8230; I have always wondered that myself.</p>
<p>When making your own plugins you may also use the built in function called load_plugin_textdomain($path_to_lang_files);</p>
<p>The language files can be .mo / .po / .pot files.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Leslie</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-18364</link>
		<author>Leslie</author>
		<pubDate>Wed, 06 Oct 2010 19:36:52 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-18364</guid>
					<description>Brilliant!  Thanks for taking the time to post this, it came up at the top of a Google search for
php __

Super info, much appreciated.</description>
		<content:encoded><![CDATA[<p>Brilliant!  Thanks for taking the time to post this, it came up at the top of a Google search for<br />
php __</p>
<p>Super info, much appreciated.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Andrei</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-18922</link>
		<author>Andrei</author>
		<pubDate>Wed, 11 May 2011 09:08:24 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-18922</guid>
					<description>Informative, even after all these years. Thanks!</description>
		<content:encoded><![CDATA[<p>Informative, even after all these years. Thanks!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: tommat</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-18952</link>
		<author>tommat</author>
		<pubDate>Tue, 07 Jun 2011 19:14:29 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-18952</guid>
					<description>Thanks ! Now It's clear :)</description>
		<content:encoded><![CDATA[<p>Thanks ! Now It&#8217;s clear :)</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-18972</link>
		<author>Steve</author>
		<pubDate>Wed, 20 Jul 2011 21:08:16 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-18972</guid>
					<description>Reporting in that Sensio Labs' Symfony framework also uses this convention for localized strings. Nice to see there is quite a bit of standardization here with the big players.</description>
		<content:encoded><![CDATA[<p>Reporting in that Sensio Labs&#8217; Symfony framework also uses this convention for localized strings. Nice to see there is quite a bit of standardization here with the big players.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: dest</title>
		<link>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-19445</link>
		<author>dest</author>
		<pubDate>Wed, 19 Oct 2011 16:28:46 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2007/04/13/what-on-earth-does-a-double-underscore-then-parenthesis-mean-in-php-__/7/#comment-19445</guid>
					<description>The function is defined in the wp-includes/l10n.php file</description>
		<content:encoded><![CDATA[<p>The function is defined in the wp-includes/l10n.php file</p>
]]></content:encoded>
				</item>
</channel>
</rss>

