Js Convert String Into Array Php Use For Loop