Search String Snippets


This code will break a string of words up along the spaces and do a mySQL search for each of the words in the string.

This code will break a string of words up along the spaces and do a mySQL search for each of the words in the string.

If a string is contained in another string and you need to search for it, this is a very clever way to do it:

31 January, 2012   

Use this code to put Google search bar on web page.

Source code for KMP String Search Algorithm

MySQL MATCH() function performs a natural language search for a string against a text

05 August, 2014   

PHP code example to highlight words in a string.

03 April, 2013   

Nice little search form snippet using HTML and CSS

Several hundred user notes on the str_replace page later, and we have a function that provides a variety of text highlighting options for plaintext or HTML strings.

30 January, 2013   

JQueryUI Search Auto complete Jump Menu with data from remote URL

23 November, 2013   

You can search and replace fields by below query in MySQL Database

12 January, 2013   

Search the source code of all stored procedures.

User below meta tag to prevent all search bots from indexing a page

02 April, 2017   

Last name matches the user input and returns their phone and email information

Tries to make out of the given string a xhtml-compatible string, that means that the return-string could be wrapped within a xml.

07 April, 2013   

Search a body of text for the most common words

Open up a text editor, copy & paste the code below. Save the file as: "commandlinefu.py" and exit the editor.

This example code showing how to use PHP Functions to clean User Input

14 February, 2011   

You'll need a of copy Simple Pie for the include right at the top here.

11 October, 2011   

In the same way you often need to format data being sent from Flash, you sometimes need to format data being received. This function takes a string and removes all spaces from it. Here we use the split method of the String class to split the string into an Array and then call the join method of the Array class to convert it back to a string....