PHP Classes

File: examples/utils_printr.php

Recommend this page to a friend!
  Classes of Everton da Rosa   XtPHP   examples/utils_printr.php   Download  
File: examples/utils_printr.php
Role: Example script
Content type: text/plain
Description: Example script
Class: XtPHP
General purpose library of utility classes
Author: By
Last change:
Date: 9 years ago
Size: 381 bytes
 

Contents

Class file image Download
<?php
//Exemplo de utilização de XtUtils::printr()

require '../utils.php';
//Um array de exemplo
$arr = array(
   
'total' => 2
   
,'line' => array(
        array(
           
'codigo' => 1
           
,'nome' => 'fulano'
       
)
        ,array(
           
'codigo' => 2
           
,'nome' => 'beltrano'
       
)
    )
);

//um print normal
print_r($arr);

//um print com Xtutils::printr()
XtUtils::printr($arr);

//Bem melhor, não é?

?>