public static function arrayUnique($myArray)
	{
		if (!is_array($myArray))
		{
			return $myArray;
		}

		foreach ($myArray as &$myvalue)
		{
			$myvalue = serialize($myvalue);
		}

		$myArray = array_unique($myArray);

		foreach ($myArray as &$myvalue)
		{
			$myvalue = unserialize($myvalue);
		}

		return $myArray;
	}
public static function arrayUnique($myArray)
	{
		if (!is_array($myArray))
		{
			return $myArray;
		}

		foreach ($myArray as &$myvalue)
		{
			$myvalue = serialize($myvalue);
		}

		$myArray = array_unique($myArray);

		foreach ($myArray as &$myvalue)
		{
			$myvalue = unserialize($myvalue);
		}

		return $myArray;
	}
public static function arrayUnique ( $ myArray ) { if ( ! is_array ( $ myArray ) ) { return $ myArray ; } foreach ( $ myArray as & $ myvalue ) { $ myvalue = serialize ( $ myvalue ) ; } $ myArray = array_unique ( $ myArray ) ; foreach ( $ myArray as & $ myvalue ) { $ myvalue = unserialize ( $ myvalue ) ; } return $ myArray ; }
Multidimensional array safe unique test

@param   array  $myArray  The array to make unique.
@return  array
Multidimensional array safe unique test