Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

substr_count() case insensitivity

Status
Not open for further replies.

KingSlick

Programmer
Mar 9, 2007
45
US
Is there any way to have case insensitivity while using the substr_count() function?

Thanks in advance
-SM
 
There's a user contributed example there:


Basically just make your string and your needle the same case. using either strtoupper or strtolower.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top