PHP: is there a way to see “invisible” characters like \n

PHPServer Side ProgrammingProgramming

The addcslashes function can be used. Below is the syntax of the function −

string addcslashes ( string $str, string$charlist )

This function returns a string with backslashes that appear before the characters. Below is a demonstration of the function.

Example

Live Demo

<?php
?>
\s\a\m\p\l\e