php数组数据库问题求指导

WBOY
Release: 2016-06-23 14:00:33
Original
881 people have browsed it


如何再把这十个textarea 存进一个数组lists10后存进一个数据库表格里的某一个字段,并用**********隔开呢?
(具体代码例子)


回复讨论(解决方案)

$arr = array('lists1','lists2','lists3','lists4','lists5','lists6','lists7','lists8','lists9','lists10');	var_dump(join('*',$arr));
Copy after login

第二行代码什么意思,起到什么作用?

第二行代码什么意思,起到什么作用?
起拼接作用 把数组的值用*号去拼接起来

那我要怎么把它们在网页上重新读取出来呢,分开读取,相当于还原原形式。我刚刚学php,多有不懂,还请见谅。

那我要怎么把它们在网页上重新读取出来呢,分开读取,相当于还原原形式。我刚刚学php,多有不懂,还请见谅。
explode 拆分 会得到一个数组

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!