Learning PHP and MySQL

Example 03-14 Various special characters in string assignments

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

Posted by on 07/19 at 03:45 PM

Next entry: Example 03-15 Using echo with special characters

Previous entry: Example 03-13 Single quotes used in a string assignment

<< Back to main