Php If Variable Contains String Js Split