将PHP数组转换为字符串的最佳方法是什么? 我有一个变量$type,它是一个类型的数组.
$type
$type = $_POST[type];
我想将它作为单个字符串存储在我的数据库中,每个条目分隔为|:
|
体育|节日|其他
php arrays string
arrays ×1
php ×1
string ×1