item log
This commit is contained in:
@@ -8,22 +8,23 @@ class DigiCallBack extends BaseController
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$in = json_decode($raw_json, true);
|
||||
$out =[];
|
||||
|
||||
log_message('critical', "DigiCallBack:: START =============================================================================== " );
|
||||
$inKeys = array_keys($in);
|
||||
foreach ($inKeys as $item){
|
||||
log_message('critical', "DigiCallBack:: item ** ${item} ---- ---- ". serialize( $in[$item]) );
|
||||
log_message('critical', "ITEM * ${item} ---------- ". serialize( $in[$item]) );
|
||||
if (is_array($in[$item])){
|
||||
foreach (array_keys($in[$item]) as $item1){
|
||||
log_message('critical', " == item1 ** ${item1} ---- ". serialize( $in[$item][$item1]) );
|
||||
log_message('critical', " ITEM1 ** ${item1} ------- ". serialize( $in[$item][$item1]) );
|
||||
if (is_array($in[$item][$item1])){
|
||||
$arr2 = $in[$item][$item1];
|
||||
foreach (array_keys($arr2) as $item2){
|
||||
log_message('critical', " == item1 ** ${item2} ---- ". serialize($arr2[$item2]) );
|
||||
log_message('critical', " ITEM2 *** ${item2} ---- ". serialize($arr2[$item2]) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
log_message('critical', "DigiCallBack:: END =============================================================================== " );
|
||||
|
||||
// $arr = array(1, 2, 3, 4);
|
||||
//foreach ($arr as &$value) {
|
||||
|
||||
Reference in New Issue
Block a user