Welcome To Snipplr

Everyone's Recent PHP Snippets Tagged search

« Prev 1 2
An Utility to Search Text in All Files of Any Directory in PHP
1 153 posted 4 years ago by ursdeep
Simple PHP search with whole word extract and highlighted search word
0 79 posted 5 years ago by flatearthcomms
Product Instant Search is a free Magento search extension that enables automatically searching right after typing a character and shows the first search result with an “add to cart” form. <p>_ Show other search results in product’s thumbnail i...
0 83 posted 5 years ago by magestore
Function to check existence of value in multidimensional array.
0 84 posted 6 years ago by Sadeveloper
PrestaShop Advance SEO module is offered by FME. This module is used to configure On Page SEO components of Product pages. The Meta title, keywords and descriptions can be utilized by using this module. Due to its intelligent formula this module is a...
0 65 posted 6 years ago by AlastairBrian
Use it similar to in_array function of PHP.
0 103 posted 7 years ago by kosinix
This function searches the current working directory (or any other directory path that you specify with parameter $p) for a file, named $f, and returns the full path and filename of the first occurrence, or false if it is either not found or the maxi...
0 73 posted 7 years ago by VisionHive
Search recursively some value in array with the key name
0 86 posted 7 years ago by MonsterDev
prints "We found 'N' result(s) for 'QUERYSTRING'"
0 36 posted 8 years ago by dan_hoerr
0 40 posted 9 years ago by zealmurapa
0 114 posted 9 years ago by Japan
I thought this was pretty elegant code and wanted to share it with anyone who found it useful.
0 74 posted 9 years ago by mattneary
I use the following code to prevent a user from getting a "webpage expired" message when hitting the back button on a page where the search results are also on the page with the form.
0 64 posted 9 years ago by bradless
A blank search in wordpress returns all the posts, which could be taken as duplicate content if that got indexed.
0 47 posted 9 years ago by baires
Add this in search.php
0 36 posted 9 years ago by laurentzziu
Im pretty new to oop php i have tried to create a php search function but im sure this needs alot of improvement. So add on :D
0 30 posted 9 years ago by JonnySnip3r
The total number of search results can be added in a hook_preprocess_search_results() function from the following variable:
0 49 posted 9 years ago by jonathanpglick
Open your search.php file and find the the_title() function. Replace it with the following: 1.echo $title; Save the search.php file and open style.css. Append the following line to it: strong.search-excerpt { background: yellow; }
0 60 posted 9 years ago by newsok
0 54 posted 9 years ago by newsok
example I used to create a auto suggest search from that pulls from a database. The example pulls from a single db table containing categories. Using jQueryUI made this pretty painless but by default the autocomplete feature uses GET variables and...
4 81 posted 9 years ago by myke
To exclude pages from wordpress search results include the following in your theme's functions.php
0 35 posted 9 years ago by myke
$search_string - переменная для поиска
0 37 posted 9 years ago by stancox
like array_search but compares against a specific key in each element of the array
2 65 posted 9 years ago by iloveitaly
Wizzlern, a Dutch Drupal trainer, has a Dutch article online on how to remove the "search this site" label in the Drupal search-block.
2 58 posted 10 years ago by berkes
Searches all array elements for a given substring. Returns an array of found key=>value pairs or false if not found.
0 41 posted 10 years ago by lancemonotone
« Prev 1 2