Php Get Javascript Array Length