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

libGdx unable to find files in android application data directory -

php - Webix Data Loading from Laravel Link -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -