okay so i have two arrays
$array_one([a]=>2,[b]=>1,[c]=>1); $array_two([a]=>1,[b]=>2,[c]=>1);
I want to be able to scroll through both of these arrays at the same time so that I can make simple comparisons. I looked at using a foreach loop, but I can only process information on one array at a time. I also looked at merging arrays, but I see no way to use this, since I need both keys and values โโfor comparison. Does anyone have a solution to this problem? I appreciate your time in the forefront.
to be specific in comparison, I want something in this sense
if ($keyone == $keytwo && $valuetwo <= $valueone) { print_r ($array_two); }
Is it possible to use recursion for a loop instead of using an iterative loop?
jkdba
source share