Well your splitting your string wrong or something, just print out what your php script returns and then print out how it looks after each splitting func call.