Php For Loop Array Size In Javascript 0