2
In an array, for example:
$arr = array('item1', 'item2' ... 'itemN');
want to assign a value to each item. For this, I tried a foreach:
foreach($arr as $a => $b)
$b = 4;
but is informed by the IDE (phpStorm) that the local variable not used;
(unused local variable '$b')
How do I assign a value to an item in that array??
Thank you!!!!!!!
– Lord Voldemort