classes/Map.php
public function set($key, $value=null){
        if (is_array($key)) {
            return $this->merge($key);
        } else {
            $ptr =& $this->find($key, true);
            return $ptr = $value;
        }
    }
public function set($key, $value=null){
        if (is_array($key)) {
            return $this->merge($key);
        } else {
            $ptr =& $this->find($key, true);
            return $ptr = $value;
        }
    }
public function set ( $ key , $ value = null ) { if ( is_array ( $ key ) ) { return $ this -> merge ( $ key ) ; } else { $ ptr = & $ this -> find ( $ key , true ) ; return $ ptr = $ value ; } }
Set a value for a key path from map
@param  string $key The key path of the value in dot notation
@param  mixed $value (optional) The value. If is a callable it will executed and the return value will be used.
@return mixed The value of the key or the default (resolved) value if the key not existed.
Set a value for a key path from map