Exemplo n.º 1
0
 /**
  * **Directly set a key:value pair.**
  *
  * @param $key
  * @param $value
  *
  * @return void
  */
 public function set($key, $value)
 {
     # attempt writing the value to the key
     if (is_string($key)) {
         list($key, $value) = Lib::expand_segments($key, $value);
         $this->search_and_replace([$key => $value]);
     }
 }