<?php
$array1 = array(
'a1' => 'text1',
'a2' => 'text2',
'a3' => 'text3',
'a4' => 'text4'
);
$array2 = array(
'a2' => '1',
'a1' => '1',
'a3' => '0',
'a4' => '0'
);
foreach($array2 as $key => $value){
echo $array1[$key]."\n";
}
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
- text2
text1
text3
text4
preferences:
117.54 ms | 404 KiB | 175 Q