I'm trying to implement this very basic code to work in the obvious manner on a 4.2x version of php. It doesn't work! Instead of printing out
The value of $x is $637.5
I get a parse error or the value of $x is $x
this is driving me crazy!
What's up - and does it work in 5.x?
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtmll/DTD/xhtmll-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Order of Precedence</title>
</head>
<body>
<?php
$x = 75;
$x = $x + 30 * $x / 4;
echo '<p>The value of $x is " , $x, " .</p >";
?>
</body>
</html>