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

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -