lib/Utils.php
public static function array_delete(array &$data, $key){
		if(array_key_exists($key, $data)){
			$value = $data[$key];
			unset($data[$key]);
			return $value;
		}
	}
public static function array_delete(array &$data, $key){
		if(array_key_exists($key, $data)){
			$value = $data[$key];
			unset($data[$key]);
			return $value;
		}
	}
public static function array_delete ( array & $ data , $ key ) { if ( array_key_exists ( $ key , $ data ) ) { $ value = $ data [ $ key ] ; unset ( $ data [ $ key ] ) ; return $ value ; } }
Deletes entry from array and return its value

@param array $data
@param string $key
@return mixed
@author Koen Punt
Deletes entry from array and return its value