Page 1 of 1

underscores before array values

Posted: Thu Oct 05, 2006 12:18 pm
by Luke
I am looking at a script somebody else wrote right now... and this is what it looks like... why the underscores before the values? Could that be a function or something?

Code: Select all

$month_names = array(
                1 => _('January'),
                _('February'),
                _('March'),
                _('April'),
                _('May'),
                _('June'),
                _('July'),
                _('August'),
                _('September'),
                _('October'),
                _('November'),
                _('December'),
                );

Posted: Thu Oct 05, 2006 1:07 pm
by volka
see http://de2.php.net/function.gettext

edit: and if you take a closer look at the syntax highlighter you will find the first underscore to be a link to http://www.php.net/_
takes you to the same page :]

Posted: Fri Oct 06, 2006 1:47 am
by RobertGonzalez
Does this have anything to do with a WordPress implementation? They use some weird function names in their app similar to that style.