Php If Array Has Javascript Code Formatters