i have a simple question:
i have this var: $v = \"24000,1500,1500,1500,1500,1500,\";
$v = \"24000,1500,1500,1500,1500,1500,\";
i would like to add those numbers together.
i\'ve
$v = "24000,1500,1500,1500,1500,1500,"; $result = 0; foreach(explode(',',$v) as $val) $result +=intval($val); echo $result;///31500