What do curley braces without any if,while,for etc before them mean in PHP? E.g.
#Code
{
#Code
}
#Code
They do/mean precisely nothing - they are only used (very rarely, and usually inappropriately) as a developer aide.
And, if anyone's wondering they don't affect variable scope either:
-> cat foo.php
<?php
$out = "yup";
{
echo "can access vars from outside? $out\n";
$in = "yup";
}
echo "can access vars from inside? $in\n";
-> php foo.php
can access vars from outside? yup
can access vars from inside? yup