Builder LIKE none option |
I would like to be able to use the like and not like builder functions without having to have the % wildcard placed for me.
This is for taking user input, so we don't know in advance what they might be. For instance, $builder->like('2%23', 'none') would produce very different results to $builder->like('2', 'both') ['both' because it's the default is all]. No, using 'after' in the above case will not suffice because we don't know where the % may be required. We already have both (the default), before and after. Can we add one more option of none? |
Welcome Guest, Not a member yet? Register Sign In |