I have a multidimensional array called $response - and the max count is not unqiue. Sometimes it's just 1 up to 4. I want the last array of the second "0":
$last_value = $response['name1'][0]['name2'][0]['name3']['name4'];
...so, if there are
$last_value = $response['name1'][0]['name2'][0]['name3']['name4'];
$last_value = $response['name1'][0]['name2'][1]['name3']['name4'];
$last_value = $response['name1'][0]['name2'][2]['name3']['name4'];
$last_value = $response['name1'][0]['name2'][3]['name3']['name4'];
choose the one with:
$last_value = $response['name1'][0]['name2'][3]['name3']['name4'];
I know, there is the php function end, but I don't get it with the example above.