当前位置:网站首页>On the difference and connection between find and select in TP5 framework
On the difference and connection between find and select in TP5 framework
2022-07-03 08:46:00 【The luckier~】
link : link.
link : link.
The above two links are official for find and select Interpretation of , If you are interested, you can click in to have a look .
I personally agree with one of them :find() Returns a one-dimensional array ,select() Returns a two-dimensional array , So the values are different , One dimensional array value with d a t a [ " n " ] , Two dimension Count Group take value use data["n"], Two dimensional array value with data["n"], Two dimension Count Group take value use data[0][“n”];
find What we found is a record ,select We found multiple records .
In turn to , Check a record find, For checking multiple records select .
If these two are used incorrectly , Data will not come out , There is no display on the page .
Here are some Inline code slice .
// An highlighted block
When the view is displayed , use find The result of the search is assigned to the variable if $res, Then the view shows {
$res}
and select The result of the search is assigned to the variable if $result, Then general and foreach,volist These are used in combination .name="result",foreach after , View presentation {
$v. Field name }
边栏推荐
- [concurrent programming] consistency hash
- Unity Editor Extension - Outline
- 【Rust 笔记】12-闭包
- [concurrent programming] explicit lock and AQS
- [rust notes] 13 iterator (Part 1)
- Creation and content of mapnode -- osgearth rendering engine series (2)
- Dom4j遍历和更新XML
- P1596 [USACO10OCT]Lake Counting S
- Mysql容器化(1)Docker安装MySQL
- [linear table] basic operation of bidirectional linked list specify node exchange
猜你喜欢

Unity editor expansion - scrolling list

Simple demo of solving BP neural network by gradient descent method

Markdown learning

XPath实现XML文档的查询

Introduction to Base64 coding

【Rust笔记】02-所有权

单调栈-503. 下一个更大元素 II

Use of ue5 QRcode plug-in

UE4 source code reading_ Bone model and animation system_ Animation compression

Unity4.3.1 engine source code compilation process
随机推荐
How to deal with the core task delay caused by insufficient data warehouse resources
Unity Editor Extension - Outline
Concurrent programming (III) detailed explanation of synchronized keyword
Alibaba canaladmin deployment and canal cluster Ha Construction
Concurrent programming (VI) ABA problems and solutions under CAS
[concurrent programming] concurrent security
Transmit pictures with Base64 encoding
Dom4j遍历和更新XML
Cloudcompare learning (1) - cloudcompare compilation and common plug-in implementation
Pit & ADB wireless debugging of vivo real machine debugging
Log4j2 vulnerability recurrence and analysis
Intersectionpicker in osgearth
Concurrent programming (V) detailed explanation of atomic and unsafe magic classes
Osgconv tool usage
Unity editor expansion - the design idea of imgui
Markdown learning
Redis data structure
Animation_ IK overview
单调栈-42. 接雨水
php-fpm软件的安装+openresty高速缓存搭建