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

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -