Ouzo\Utilities\Arrays::removeNestedValue PHP Метод

removeNestedValue() публичный статический Метод

Устаревший:
public static removeNestedValue ( array &$array, array $keys )
$array array
$keys array
    public static function removeNestedValue(array &$array, array $keys)
    {
        trigger_error('Use Arrays::removeNestedKey instead', E_USER_DEPRECATED);
        self::removeNestedKey($array, $keys);
    }

Usage Example

Пример #1
0
 /**
  * @test
  * @expectedException PHPUnit_Framework_Error_Deprecated
  * @expectedExceptionMessage Use Arrays::removeNestedKey instead
  */
 public function shouldThrowDeprecatedExceptionWhenUseRemoveNestedValue()
 {
     //given
     $array = array('1' => array('2' => array('3' => 'value')));
     //when
     /** @noinspection PhpDeprecationInspection */
     Arrays::removeNestedValue($array, array('1', '2'));
 }