I have a first array with:
$first_array = Array
(
"1" => "Loading dock",
"2" => "Forklift"
);
and, a second string with:
either case 1:
$second_string = 1;
or case 2:
$second_string = 2;
or case 3:
$second_string = 1,2;
I want to print value of
- first array
in which matched with the keys of first array with value of second string.
I have tried this:
$first_array [$second_string];
It works fine with case 1 & 2 for case 3 I need help....!