codepad
[
create a new paste
]
login
|
about
Link:
http://codepad.org/P7W4vrdh
[
raw code
|
output
|
fork
]
PHP
,
pasted on Jan 8:
1
2
3
4
<?php
$variable
=
"1 5 7 8"
;
echo
array_sum
(
explode
(
' '
,
$variable
));
?>
Output:
1
21
Create a new paste based on this one
Comments: