Using Escaped Characters : String « String « PHP
- PHP
- String
- String
Using Escaped Characters
<?php
/* The same properly formatted string*/
$variable = "Do you know what \"escaped\" characters are?";
/* Prints the 'a' character using hexadecimal */
$variable = "\x41 is the 'a' character";
?>
Related examples in the same category