Php Parse String Into Array Javascript Length