I'm just starting out with PHP, so I'm sure this is a very basic issue, and I'm just overlooking something. Actually the following PHP code is from a function example in a beginner book that I'm reading:
Code: Select all
<html>
<head>
<title>Create a User Function</title>
<?php
function myFunction($company) {
print("<p>Welcome to $company</p>");
}
?>
</head>
<body>
<h3>Start</h3>
<?php
$company = “Acme Auto”;
myFunction($company);
?>
<h3>End</h3>
</body>
</html>
When I create a PHP document, insert this code, and try to run it, I get a "Parse error: syntax error, unexpected T_STRING" error on the line that assigns "Acme Auto" to the $company variable.
Any idea what I might be doing wrong?
Thanks.