将一系列数据作为电子邮件发送 [英] Sending array of data as email
本文介绍了将一系列数据作为电子邮件发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个PHP数组,我需要通过电子邮件测试该数组的内容.我知道我们可以使用var_dump()
看到整个数组,但是如何在电子邮件中发送该输出呢?
I have a PHP array, and I need to test the content of that array via an email. I'm aware that we can see the entire array using var_dump()
, but how can I send that output in an email?
推荐答案
尝试以下代码,它将清楚地显示完整的数组
try with following code, it will show the complete array clearly
echo "<pre>";
print_r($array);
echo "</pre>";
这篇关于将一系列数据作为电子邮件发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文