I have found in different web sites (for example here) this statement:
This PHP code prints a newline using 10 bytes:
echo "\n";
This PHP code prints a newline using 9 bytes:
echo "
";
This PHP code prints a newline using 8 bytes (using the bitwise NOT operator ~):
echo ~õ;
My problem is that I can't make that last solution work in any possible way, test and environment that I used. I have tested on online PHP sandboxes, on local machine, etc, when I execute
echo ~õ;
I get always this output:
<J
Why? Can someone explain why I get this output and why it should print a newline?