PHP 初学者

WBOY
Release: 2016-06-13 12:10:41
Original
933 people have browsed it

PHP 菜鸟求助
鄙人最近学习PHP,连接数据库这一块有个问题,请大神帮们解答。
问题:
如何显示一列中的部分内容?我们知道利用mysql_fetch_array()函数可以echo选择出的表的一列中的内容,但是我只想显示这一列的部分内容,比如前两句怎么办?

------解决思路----------------------
举例说明吧。
------解决思路----------------------
使用php的 substr()函数来取字符串

Related labels:
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!