我目前有一个如下所示的文本文件:
Test1 = 120827 = December 23, 2012:
Test2 = 147203 = December 23, 2012:
Test3 = 11806 = December 23, 2012:
Test4 = 11806 = December 23, 2012:
Test5 = 0 = December 23, 2012:
我想要做的是将第二列中的所有数字加在一起。我怎样才能用 PHP 做到这一点?我的实际文件比这个大得多。
Test1 = *120827 = December 23, 2012:
Test2 = *147203 = December 23, 2012:
Test3 = *11806 = December 23, 2012:
Test4 = *11806 = December 23, 2012:
Test5 = *0 = December 23, 2012:
*我要补充的。
任何帮助将不胜感激!谢谢!