function arrayDump($_array, $_name = "Array", $_tab = " ") { $position = preg_replace('/ /', '', $_tab, 1); echo "{$position}<span style=\"color:rgb(230,0,0)\">{$_name}:</span><br>"; foreach ($_array as $k => $i) { if (is_array($i)) { arrayDump($i, $k, " {$_tab}"); } else { echo "{$_tab}<b>{$k}:</b> {$i}<br>"; } } }
public function makePage() { jBlock(); ?> <div class="row" style="margin-top:70px;"> <div class="col-lg-12"> <div class="well well-sm"> Home!<br> <?php arrayDump($this->parameters["page"], "PARAMETERS"); ?> </div> </div> </div> <?php $temp = jBlockClose(); return $temp; }