Php If Array Has Javascript Code Formatter