Home > php教程 > php手册 > body text

TP5 batch adding learning is in progress

WBOY
Release: 2016-12-01 00:00:22
Original
1436 people have browsed it

TP5 is learning to add batches
$attr_count = input('post.attr_name/a'); //Add specification attributes in batches<br> FOREACH ($ Attr_count as $ keys = & gt; $ v) {// batch add specification attribute <br> <br>                           $list[]=[<br> ‘attr_id’=>input('post.attr_id/a')[$keys],<br> 'attr_name'=>input('post.attr_name/a')[$keys],<br> 'attr_value'=>input('post.attr_value/a')[$keys],<br> 'attr_cps'=>input('post.attr_cps/a')[$keys],<br> ‘if_task’=>input('post.if_task/a')[$keys],<br> ‘role_id’=>input('post.role_id/a')[$keys],<br> ‘radios’=>input('post.radios/a')[$keys],<br>                                                                   }<br>                                                                                                                                                                                                                                                                                               to have <br>

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template