Php Set Variable To Empty Array Javascript Length Text