search - Wrap text - case insensitive with php -


If I search for Tom ARNDF and $ variable "Tom Arnfeld", I get likes as a great code in Mesecul (which is case-insensitive)

To highlight which part of the search with the query I $ variable I need to maintain the original case of $ variable .

  $ TextToPrint = preg_replace ("/ ({$ variable}) / i", "  $ 1 , $ text)  

this can help


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -