Is
$ext != ".jpg"
the same thing as
$ext != '.jpg'
?
yes
Originally posted by drawmack yes
, and the second verison is faster, because PHP doesn't have to check for variables inside the string.
However the speed difference on a string of this length is very nominal and may not even show up with microtime.