PHP Parse error: syntax error, unexpected


PHP Parse error: syntax error, unexpected '}', expecting ']'

PHP is quite good at helping you fix errors. At times, you may make the od mistake by closing a bracket with a square bracket when it should be a curly brace. The code below is an example for which you should go to line 22 and fix the error.

Parse error: syntax error, unexpected '}', expecting ']' in /home/myaccount/file.php on line 22