Using Brackets in PHP variable

I am needing to create a variable that contains closing brackets like below:

$third =   "[one_third]";

I am getting the following error when trying to do so:

Parse error: syntax error, unexpected ‘[’ in /home/sample/public_html/test.php on line 1

Is there a way I can close out the bracket(s) in order to eliminate this error?

I don’t get an error…

$third =   "[one_third]";

Are you sure that is what your code actually looks like?

Works for me too!

should not give any error. check the following test page.