Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Wednesday, March 7, 2012
Why can"t I declare a function name "_”?
Code:
function _()
{
echo 'hello word';
}
Output:
Fatal error: Cannot redeclare _()
I haven't defined this function _ before, then why I am getting this error?
_ is an alias for gettext, a built-in function. Just as you cannot declare a function gettext, you can't create a function _ since one is already there.
_() is an alias for gettext.
ReplyDelete_ is an alias for gettext, a built-in function. Just as you cannot declare a function gettext, you can't create a function _ since one is already there.
ReplyDelete