I have the following php code where by a for loop create different variables. Basically what I need is, after run the code below, it should create different variables such as $o1, $o2, $o3 etc. But it is not working based on the way I implemented. Does anyone can help me how to solve this?
for($i = 0; $i <= $totalOa; $i++){
'$o'.$i = $pieces[$i];
}