PHP string - what's wrong with '<'? -



PHP string - what's wrong with '<'? -

i'm working strings , somehow php decides ignore next string if there "<" inside. can't find that. see example:

$str = 'foo<bar' // echoes foo, foo<bar expected

are there string operators don't know about? strings wrapped within ' ' should not evaluated php, right?

use this

htmlspecialchars ("foo<bar");

php string concatenation

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -