PHP Using Escaped Characters – String Function

<?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";?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.