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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

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