相符 [英] Match case
本文介绍了相符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我写了一段非常简单的代码,用于搜索字符串。当我查询数据库时,它会找到我搜索的内容:
Hi,
I wrote a very simple piece of code that performs a search for a string. It finds whatever I search when I query the database like this:
展开 | 选择 | Wrap | 行号
推荐答案
尝试使用strtolower(): http://ie.php.net/strtolower
Try using strtolower(): http://ie.php.net/strtolower
或不区分大小写的版本: str_ireplace()。
Mark。
Or the case-insensitive version: str_ireplace().
Mark.
我已经想到了,但我'' MN确定如何实现它...任何想法?
I''ve thought of that, but I''m not sure how to implement it...Any ideas?
这篇关于相符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文