ActiveReocrd mode
The biggest feature of this mode is that it simplifies the operation of CURD and adopts an object-based operation method, which is easy to use//Add a piece of data
$user = M('User');$user->add();
//Combined with create
$user = M('User');//Find the value with primary key 4
$user = M ('User');//Find user=Crayon Shin-chan's record
$user = M('User');//Output user
echo $user->user;//Query multiple
$user = M('User');//Modify a piece of data
$user = M('User');//Delete the currently found data
$user = M('User');//Delete data with primary key 10
$user = M('User');//Delete data with primary key 10 ,11 data
$user = M('User');The above introduces the ThinkPHP--ActiveReocrd mode (add, delete, modify and check), including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.