+ 2
Where did go wrong?
3 Answers
+ 12
Looks like you have copied it from somewhere, because every whitespace symbol in this program isn't valid.
Also, $_REQUEST["q"] is undefined, because the Code Playground doesn't support request parameters (you can't pass them to your program).
Array declaration is completely valid.
Here's the fixed version:
https://code.sololearn.com/w2b9h4qvLIDR/?ref=app
+ 1
Array declaration is wrong. Check Here how to declare array and assign values.
https://www.google.com/amp/s/www.geeksforgeeks.org/php-arrays/amp/
+ 1
Ok Very Good Thanks you