Home > Backend Development > PHP Tutorial > 怎么对特定键名的数组元素进行操作

怎么对特定键名的数组元素进行操作

WBOY
Release: 2016-06-13 12:43:11
Original
935 people have browsed it

如何对特定键名的数组元素进行操作
比如我有一个从数据库中取出的数组,键名为字段名
直接把这个数组元素输出在表格上这我会 用foreach就行


但我想为所有特定键名的元素 比如所有键名为'userid'的数组元素 都添加超链接
然后输出在表格上
有办法么..

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