Browse Source

foreach-assignment.php

master
Brennen Bearnes 1 year ago
parent
commit
b98f3ed32f
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      home/fragments/foreach-assignment.php

+ 11
- 0
home/fragments/foreach-assignment.php View File

@ -0,0 +1,11 @@
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
$bar = [
'thing' => 'otherthing',
];
$foo = [];
foreach ($bar as $key => $value) {
$foo[$key] = $value;
}
print_r($bar);

Loading…
Cancel
Save