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
Post a Comment