Answer the question
In order to leave comments, you need to log in
How to check huge array and output data?
I have an array
$a = $d['as'][0]['as'][0]...['as'][0]['as'][0]['type']
Answer the question
In order to leave comments, you need to log in
Use recursion:
function getKod($data){
if( $data['type'] === 'object' ){
return $data['kod'];
}
return getKod($data['as'][0]);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question