Home >php教程 >php手册 >TP5 batch adding learning is in progress

TP5 batch adding learning is in progress

WBOY
WBOYOriginal
2016-12-01 00:00:221451browse

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>

Statement:
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
Previous article:A simple ORM classNext article:A simple ORM class