Beispiel #1
0
 /**
  * @return string
  */
 public static function get_dump()
 {
     $args = func_get_args();
     $st = '';
     foreach ($args as $a) {
         $r = $a;
         if (is_null($a)) {
             $r = 'null';
         } else {
             if ($a === false) {
                 $r = 'false';
             } else {
                 if ($a === true) {
                     $r = 'true';
                 } else {
                     if ($a === 0) {
                         $r = '0';
                     } else {
                         if ($a === '') {
                             $r = '""';
                         } else {
                             if (!$a) {
                                 $r = '0';
                             } else {
                                 if (is_object($a) || is_array($a)) {
                                     $r = \bbn\str\text::export($a);
                                 }
                             }
                         }
                     }
                 }
             }
         }
         $st .= $r . PHP_EOL;
     }
     return PHP_EOL . $st . PHP_EOL;
 }
Beispiel #2
0
 /**
  * Returns the current configuration for PHP
  * 
  * @return array Current configuration
  */
 public function show_config()
 {
     return \bbn\str\text::export(\bbn\str\text::make_readable($this->get_config()), 1);
 }