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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -