Is there a speed difference in alternative 'if' syntax in PHP? -
this question has answer here:
in php can use this:
if ($something) { //then bla }
or can use:
if ($something): //then bla endif;
source: http://php.net/manual/en/control-structures.alternative-syntax.php
is there speed difference in using second method?
no, isn't difference. snippet of code "converted" corresponding "lower-level-one".
moreover, speed difference give - approximately - input , complexity: in case, input doesn't change , complexity neither
Comments
Post a Comment