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
$sum = array_sum( explode( ',', $v ) );
What this does is split $v by the delimiter , with explode() and sum the resulting array of parts with array_sum().
$v
,