Hey, Im trying to use Chr() and Iv a problem:
m trying to use Chr() and I
<?php $en=chr(13); echo "B and".$en."A";
?>
chr(13) suppose to give me "Enter" but it doesn't work...why?
thanks🙂
Because browsers ignore newlines.
Put <pre>..</pre> tags round the code
<pre> <?php $en=chr(13); echo "B and".$en."A"; ?> </pre>
BTW, "\n" does the same
echo "<pre>B and\nA</pre>";
thanks mate 🙂