I am a newbie on php writing. In the my first trying, I get a problem on input a html tag to php.
This code output an error:
<?php
$a="Begin";
$b=12;
echo $b . " " . $a . " " . "This is php file <br/>";
echo strlen($a);
echo strpos($a,"in") . "<br/>";
echo addcslashes($a,"i")";
?>
this is the error message I get:
Parse error: syntax error, unexpected '"', expecting ',' or ';' in /home/specials/public_html/bextool.com/1.php on line 7
Is there any body who can explain about it?
This line:
should be
You can sometimes tell in the editor that the colors are different when you’re missing a
"or something. In this case, you can see the last semicolon is not black, like the other ones – a sign of trouble.