PHP - Loops
Find the error in this PHP code snippet:
$data = ['x' => 5, 'y' => 10];
foreach ($data as $key, $value) {
echo $key . $value;
}$data = ['x' => 5, 'y' => 10];
foreach ($data as $key, $value) {
echo $key . $value;
}foreach ($array as $key => $value), not comma separated.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions