Page 1 of 1

Strings not being read

Posted: Sun Jul 12, 2009 2:55 pm
by planetkno
Simple issue - but need help finding the obvious...



xmlns="[www.w3.org]; xml:lang="en" lang="en">

<head>


<title>String2</title>

</head>

<body>

<?php # string2.php

// create variables

$first_name = 'Jockular';
$last_name = 'Codifile';
$book = 'Height of Indifference';


//print the name of this script

echo '<p>The <em>$book</em> was written by $first_name $last_name.</p>';


?>

</body>

</html>

The Output is:

The $book was written by $first_name $last_name.

Re: Strings not being read

Posted: Sun Jul 12, 2009 4:36 pm
by planetkno
Worked like a charm - ty