如何在PHP中找到数字中所有数字的总和?
php string sum
我想要像这样的所有字符串的总和1+2+3+4+5.
1+2+3+4+5
$input = '12345';
php
php ×2
string ×1
sum ×1