iamshaunjp / iamshaunjp/php-mysql-tutorial

syntax error, unexpected '}' for end of the #php #vscode #2

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
362
Forks
324
PR merge metrics
No merged PRs in 30d

Description

when I try to submit code below, I get an error just like on the title. someone says "it can be a misclosing something". on very old versions ıt should be added "endif" for closing tag but it did not work, tho.
Mac OS catalina 10.15.16 and vscode is the latest version I guess.
problematic line is and the } is pointed by editor. Any suggestion is welcome. And I hope I am clear, enough. (fist time in github)
` 'shiny', 'price' =>20],
['name' => 'green', 'price' =>10],
['name' => 'red', 'price' =>15],
['name' => 'gold', 'price' =>5],
['name' => 'light', 'price' =>40],
['name' => 'banana', 'price' =>2],
];

foreach($products as $products){
if($products['price'] <15){
echo $products['name'] . '
';
}
};
?>



Document









`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.