php - How to make control characters visible in string? -


i wondering if possible make control characters in string visible.

    $mystring = "test\n";     echo $mystring; 

this output test don't want php translate \n should output test\n (for debugging purposes). possible?

put between single quotes:

$mystring = 'test\n'; echo $mystring; //returns test\n 

Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -