Strings not being read

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
planetkno
Forum Newbie
Posts: 2
Joined: Sun Jul 12, 2009 2:36 pm

Strings not being read

Post 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.
planetkno
Forum Newbie
Posts: 2
Joined: Sun Jul 12, 2009 2:36 pm

Re: Strings not being read

Post by planetkno »

Worked like a charm - ty
Post Reply