php namespaces are case-insensitive:
file1.php:
namespace foo;
function bar()
{
echo 'from bar';
}?>
file2.php:
fOo\bar() // output: from bar
?>
This example is here:file1.php:
namespace foo;
function bar()
{
echo 'from bar';
}?>
file2.php:
fOo\bar() // output: from bar
?>
http://php.net/manual/en/language.namespaces.rationale.php
A better example is here:
http://www.sitepoint.com/php-53-namespaces-basics/
No comments:
Post a Comment