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 1062 posted 8 years ago by ursdeep
Simple PHP search with whole word extract and highlighted search word
0 817 posted 8 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 796 posted 9 years ago by magestore
Function to check existence of value in multidimensional array.
0 740 posted 10 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 757 posted 10 years ago by AlastairBrian
Use it similar to in_array function of PHP.
0 844 posted 11 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 613 posted 11 years ago by VisionHive
Search recursively some value in array with the key name
0 743 posted 11 years ago by MonsterDev
prints "We found 'N' result(s) for 'QUERYSTRING'"
0 501 posted 12 years ago by dan_hoerr
0 548 posted 12 years ago by psteinweber
0 421 posted 12 years ago by zealmurapa
0 1105 posted 12 years ago by Japan
I thought this was pretty elegant code and wanted to share it with anyone who found it useful.
0 625 posted 13 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 653 posted 13 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 585 posted 13 years ago by baires
Add this in search.php
0 545 posted 13 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 404 posted 13 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 615 posted 13 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 573 posted 13 years ago by newsok
0 671 posted 13 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 791 posted 13 years ago by myke
To exclude pages from wordpress search results include the following in your theme's functions.php
0 492 posted 13 years ago by myke
$search_string - переменная для поиска
0 588 posted 13 years ago by stancox
like array_search but compares against a specific key in each element of the array
2 711 posted 13 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 743 posted 14 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 570 posted 14 years ago by lancemonotone
« Prev 1 2