Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$data = [
'more' => [
'complex' => ['my value']
]
];
if (array_key_exists('more', $data) && array_key_exists('complex', $data['more']) && array_key_exists(0, $data['more']['complex'])) {
echo $data['more']['complex'][0];
}
echo ' ## ';
if (!empty($data['more']['complex'][0])) {
echo $data['more']['complex'][0];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.