Php Class Variable Array Javascript Length Text