PHP Parse error: syntax error, unexpected T_STRING on line X -


this question has answer here:

i have problem when did php , try call function again can help?

php parse error: syntax error, unexpected t_string on line 12

code:

 <?php function greetings($name) {     echo "greetings, " . $name . "!"; }  $n = "magnus" greetings($n); ?> 

you forgot add ";" in code

 $n = "magnus";  // use ; 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -