PHP Classes

File: testDbg

Recommend this page to a friend!
  Classes of Federico   Dbg   testDbg   Download  
File: testDbg
Role: Example script
Content type: text/plain
Description: Test de la clase dbg
Class: Dbg
Output variable values for debugging
Author: By
Last change:
Date: 14 years ago
Size: 500 bytes
 

Contents

Class file image Download
<?php
$dato
= array('buen','dia');
Dbg::arr($dato);
Dbg::sep();
$dato = '<div>hola como estas</div>';
Dbg::code($dato);
Dbg::sep();
Dbg::str('hola','como','estas',array('buuu'));
Dbg::sep();

class
nada{
    protected
$_saludo = 'buuu';
   
    public function
__toString(){
        return
'no se q paso';
    }
   
}

$o2 = new nada();
Dbg::obj($o2);
Dbg::sep();

$o = new \stdClass();
$o->_saludo = 'hola como estas';
Dbg::ots($o);

Dbg::sep();
Dbg::sep();

$d = 'hola';
Dbg::type($o);
?>