php string echo behaving weirdly -


the following not printing , have not yet found explanations online:

<?php  function aa() {    return "<w"; }  $r = aa();  echo $r;     ?> 

no matter kind of quotes use. if print string not starting < , followed character prints correctly. on php.ini but, ideas???

you can try this:

 <?php  function aa() {    return htmlspecialchars("<w"); }  $r = aa();  echo $r;     ?> 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -