File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
user_guide_src/source/database Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ searches.
444444 .. literalinclude :: query_builder/039.php
445445
446446 If you want to control where the wildcard (**% **) is placed, you can use
447- an optional third argument. Your options are ``before ``, ``after `` and
447+ an optional third argument. Your options are ``none ``, `` before ``, ``after `` and
448448 ``both `` (which is the default).
449449
450450 .. literalinclude :: query_builder/040.php
Original file line number Diff line number Diff line change 11<?php
22
3+ $ builder ->like ('title ' , 'match ' , 'none ' ); // Produces: WHERE `title` LIKE 'match' ESCAPE '!'
34$ builder ->like ('title ' , 'match ' , 'before ' ); // Produces: WHERE `title` LIKE '%match' ESCAPE '!'
45$ builder ->like ('title ' , 'match ' , 'after ' ); // Produces: WHERE `title` LIKE 'match%' ESCAPE '!'
56$ builder ->like ('title ' , 'match ' , 'both ' ); // Produces: WHERE `title` LIKE '%match%' ESCAPE '!'
You can’t perform that action at this time.
0 commit comments