Balanced Brackets in PHP