mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 15:43:58 +00:00
Minor syntax tweak
This commit is contained in:
parent
e1b9d8d7b4
commit
4155b0cb20
@ -284,7 +284,7 @@ echo "\n";
|
||||
$wheels = ['bicycle' => 2, 'car' => 4];
|
||||
|
||||
// Foreach loops can iterate over arrays
|
||||
foreach ($wheels as $wheel_count){
|
||||
foreach ($wheels as $wheel_count) {
|
||||
echo "$wheel_count";
|
||||
} // Prints "24"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user