SO to the rescue!
Say I have these arrays:
<?php
$arr_1 = array([0] => 'setup');
$arr_2 = array([0] => 'artwork', [1] => 'path');
$arr_3 = array([0] => 'artwork', [1] => 'color');
$container = array(
'progress' => array(
'setup' => 'complete',
'artwork' => array(
'path' => 'complete',
'color'=> '',
)
)
);
?>
What I want to do is check the $container to see if the value or values from the given arrays are empty, basically giving the effect of:
if(empty($container['progress'][*first value of given array*][*if exists, second value of given array*])){...}
What is the best way to achieve said goal?
Something like this:
I assume you also want to get
trueif the keys don’t exist.