Php Class Variable Array Javascript Length Method