Learning PHP and MySQL
Example 03-19 Combining a string and a number
<?php
$str = "This is an example of ". 3 ." in the middle of a string.";
echo $str;
?>
Displays:
This is an example of 3 in the middle of a string.
Posted by on 07/19 at 03:55 PM
Next entry: Example 03-20 Using a constant in your program
Previous entry: Example 03-18 Concatenating strings together