commit masivo.
[ecomupi.git] / include / depurar.php
blobe391e2053235d35bdeaafbf2d9af8e7c8dde67ef
1 <?php
2 function DEPURAR($sTexto, $forzar=0){
3 if (0 || $forzar){echo '<pre>'.$sTexto.'</pre><br />';}
6 function print_ar($array, $count=0) {
7 $i=0;
8 $tab ='';
9 $k=0;
10 while($i != $count) {
11 $i++;
12 $tab .= "&nbsp;&nbsp;|&nbsp;&nbsp;";
14 foreach($array as $key=>$value){
15 if(is_array($value)){
16 echo $tab."[$key]<br />";
17 $count++;
18 print_ar($value, $count);
19 $count--;
21 else{
22 $tab2 = substr($tab, 0, -12);
23 echo "$tab2~ $key: $value<br />";
25 $k++;
27 $count--;