Php Get Javascript Array Map