Javascript Array And Array Methods In Php