Php Get Javascript Array Splice Example