Esempio n. 1
0
 /**
  * Static factory method.
  *
  * @param mixed $options If a number is used, it is the maximum depth.
  */
 public static function D($value, $options = array())
 {
     if (is_numeric($options)) {
         $options = array('depth' => $options);
     } elseif (empty($options)) {
         $options = array();
     }
     $plop = new Dumpling($options);
     return $plop->dump($value);
 }