src/JSONObject.php
public function remove($key)
	{
		if(array_key_exists($key, $this->map))
		{
			$tmp = $this->map[$key]; 
			unset($this->map[$key]);
			return $tmp;
		}
		else
			return NULL;
	}
public function remove($key)
	{
		if(array_key_exists($key, $this->map))
		{
			$tmp = $this->map[$key]; 
			unset($this->map[$key]);
			return $tmp;
		}
		else
			return NULL;
	}
public function remove ( $ key ) { if ( array_key_exists ( $ key , $ this -> map ) ) { $ tmp = $ this -> map [ $ key ] ; unset ( $ this -> map [ $ key ] ) ; return $ tmp ; } else return NULL ; }
Remove a name and its value, if present.

@param key The name to be removed.
@return The value that was associated with the name, or null if there was no value.
Remove a name and its value if present .