After a period of use of various CMS's, I have begun to recognize the strength of being able to at least basic PHP. I have begun to look at some code that I threw up on my hosting to see what happens.
Now, however, I encountered the patrol, and I can not understand what is wrong. The code is extremely small and simple, like my PHP knowledge with other words.
The following code generates a "Parse error: syntax error, unexpected T_STRING in *******/ test.php on line 6".
PHP Code:
<?php
$strang1 = This is;
$strang2 = string;
$strang3 = $strang1.$strang2;
/* This will print: "This is a string"*/
echo $strang3;
?>
What is wrong?
Bookmarks