Exemplo n.º 1
0
 /**
  * _SET (static)
  *
  * Get nested value from array or object without having to check each level
  *
  * @static
  *
  * @param   array|object  $var    The array or object to fetch data from
  * @param   array|string  $path   String or array of array/object keys to the nested value
  * @param   mixed         $value  The new value to use
  *
  * @return  array|object          The original var, but with updated data
  */
 public static function _set()
 {
     $args = func_get_args();
     $tmp = new Nest(array_shift($args));
     call_user_func_array([$tmp, "set"], $args);
     return $tmp->data();
 }