Php Set Empty Array Javascript Length