I'm tryng to learn PHP and I'm trying to do it by doing things the long way round. So I came across array_sum() and I was wondering if there is a way to calculate an array without using it.
for example
$my_array = array(10, 80, 30);
I've only got as far as this and I'm stumped. I have looked on google but I haven't found anything.
$implode = implode(",", $my_array );
$explode = explode(",", $implode);
foreach($explode as $test)
{
}
$my_arraywould be the same as$explode. Can you tell us what are you trying to do?