Quote:
Originally Posted by sabret00the
the fix is
PHP Code:
<?php $priceids = $row_call_albums['priceids']; $arr = explode(" ", $priceids); foreach ($arr as $key => $value) { $key = $value * 2; echo $key; } ?>
|
You can cut out a line of code by just using this.
PHP Code:
$arr = explode(' ', $row_call_albums['priceids']);
No sense adding another variable to memory when it's not needed.
Actually, if the rusults of $row_call_albums['priceids'] has the format of 1, 2, 3 then you should explode it into array with ',' not ' '.