What will the value of the $totals_string variable be after the following code is executed?

What will the value of the $totals_string variable be after the following code is executed?




$totals = array(141.95, 212.95, 411, 10.95);
$totals[2] = 312.95;
$totals_string = '';
for ($i = 0; $i < count($totals); $i++){
$totals_string .= $totals[$i] . "|";
}
141.95|212.95|312.95|10.95|


Learn More :