Code: Select all
$word = substr("$row->title", -4);
if ($word== "DOG")
{ echo "this should show here";}It does render DOG if I echo $word, but it will NOT produce the "this should show here" text.
Anyone know why?
Moderator: General Moderators
Code: Select all
$word = substr("$row->title", -4);
if ($word== "DOG")
{ echo "this should show here";}