Js String Split Array Php Functions