unable to use [] syntax in PHP5.3