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

c++ - What's the differece between of link to a dynamic file and as a input object? -

javascript - Feed FileReader from server side files -

Android Unit Testing / Mockito: android.location.Location not mocked -