File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed
user_guide_src/source/database/queries Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- $ pQuery = $ db ->prepare (static function ($ db ) {
4- return $ db ->table ('user ' )->insert ([
5- 'name ' => 'x ' ,
6- 'email ' => 'y ' ,
7- 'country ' => 'US ' ,
8- ]);
9- });
3+ $ pQuery = $ db ->prepare (static fn ($ db ) => $ db ->table ('user ' )->insert ([
4+ 'name ' => 'x ' ,
5+ 'email ' => 'y ' ,
6+ 'country ' => 'US ' ,
7+ ]));
Original file line number Diff line number Diff line change 11<?php
22
33// Prepare the Query
4- $ pQuery = $ db ->prepare (static function ($ db ) {
5- return $ db ->table ('user ' )->insert ([
6- 'name ' => 'x ' ,
7- 'email ' => 'y ' ,
8- 'country ' => 'US ' ,
9- ]);
10- });
4+ $ pQuery = $ db ->prepare (static fn ($ db ) => $ db ->table ('user ' )->insert ([
5+ 'name ' => 'x ' ,
6+ 'email ' => 'y ' ,
7+ 'country ' => 'US ' ,
8+ ]));
119
1210// Collect the Data
1311$ name = 'John Doe ' ;
You can’t perform that action at this time.
0 commit comments