Originally posted by el_kab0ng
doing it the way you suggest gets me:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING
Which is why I asked, since I recall getting that the first time as well.
It does?! Works fine for me. Makes sense to: "If $image1 has the value 'http://' change its value to 'N/A'."
It's one of the simplest control statements you could have:
if($image1=='http://') $image1='N/A';
If that's failing with a parse error then you're not telling us everything 🙂