PHP Parse error: syntax error, unexpected T_STRING on line X -
this question has answer here:
- php parse/syntax errors; , how solve them? 12 answers
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
Post a Comment