src/Dumpling.php
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);
    }
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);
    }
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 ) ; }
Static factory method.

@param mixed $options If a number is used, it is the maximum depth.
Static factory method .