Trying to create a variable with unique name for each $item
.
To prevent error "Only variables can be passed by reference".
If there are 5 items in array $items
, we should get 5 unique variables:
$item_name_1;
$item_name_2;
$item_name_3;
$item_name_4;
$item_name_5;
All of them should be empty.
What is a true solution for this?