Convert String To Array Using Javascript With Php