In an array, for example:
$arr = array('item1', 'item2' ... 'itemN');
I 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 unused local variable;
(unused local variable '$b')
How do I assign a value to an item in this array ??