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

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

tsql - Correct sql/hql query (aggregate in where clause) -