Unique variables inside foreach()

coleccromos

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