protected function get_pre_deep_keys_value( array $arr ) {
		$keys  = [];
		$value = null;

		foreach ( $arr as $key => $v ) {
			if ( is_array( $v ) ) {
				$keys[] = $key;
				list( $ks, $val ) = $this->get_pre_deep_keys_value( $v );
				$keys   = array_merge( $keys, $ks );
				$value  = $val;
			} else {
				$keys[] = $key;
				$value  = $v;
			}
		}

		return [$keys, $value];
	}
protected function get_pre_deep_keys_value( array $arr ) {
		$keys  = [];
		$value = null;

		foreach ( $arr as $key => $v ) {
			if ( is_array( $v ) ) {
				$keys[] = $key;
				list( $ks, $val ) = $this->get_pre_deep_keys_value( $v );
				$keys   = array_merge( $keys, $ks );
				$value  = $val;
			} else {
				$keys[] = $key;
				$value  = $v;
			}
		}

		return [$keys, $value];
	}
protected function get_pre_deep_keys_value ( array $ arr ) { $ keys = [ ] ; $ value = null ; foreach ( $ arr as $ key => $ v ) { if ( is_array ( $ v ) ) { $ keys [ ] = $ key ; list ( $ ks , $ val ) = $ this -> get_pre_deep_keys_value ( $ v ) ; $ keys = array_merge ( $ keys , $ ks ) ; $ value = $ val ; } else { $ keys [ ] = $ key ; $ value = $ v ; } } return [ $ keys , $ value ] ; }
Pre get deep keys and value.

Used for saving pre data when properties are in a flexible or repeater.

@param  array $arr

@return array
Pre get deep keys and value .