PHP Various Special Characters In String Assignments – String Function

<?php
$newline = "A newline is \n";
$return = "A carriage return is \r";
$tab = "A tab is \t";
$dollar = "A dollar sign is \$";
$doublequote = "A double-quote is \"";
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.