Php Echo Array Element Javascript Methods Syntax