<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/search</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 15 Feb 2012 13:18:43 GMT</pubDate>
<item>
<title>(PHP) Limit Search Results to Specific Post Types  - florent</title>
<link>http://snipplr.com/view/60034/limit-search-results-to-specific-post-types-/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 21 Oct 2011 02:30:12 GMT</pubDate>
<guid>http://snipplr.com/view/60034/limit-search-results-to-specific-post-types-/</guid>
</item>
<item>
<title>(PHP) Thematic Add Search Form To Header - scottnix</title>
<link>http://snipplr.com/view/59471/thematic-add-search-form-to-header/</link>
<description><![CDATA[ <p>Add a search box inside the branding in the header.</p> ]]></description>
<pubDate>Thu, 06 Oct 2011 07:14:54 GMT</pubDate>
<guid>http://snipplr.com/view/59471/thematic-add-search-form-to-header/</guid>
</item>
<item>
<title>(PHP) Wordpress search results header - dan_hoerr</title>
<link>http://snipplr.com/view/56498/wordpress-search-results-header/</link>
<description><![CDATA[ <p>prints "We found 'N' result(s) for 'QUERYSTRING'"</p> ]]></description>
<pubDate>Wed, 13 Jul 2011 04:30:54 GMT</pubDate>
<guid>http://snipplr.com/view/56498/wordpress-search-results-header/</guid>
</item>
<item>
<title>(PHP) Search value by key in multidimensional array - jurius</title>
<link>http://snipplr.com/view/55684/search-value-by-key-in-multidimensional-array/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 25 Jun 2011 01:37:50 GMT</pubDate>
<guid>http://snipplr.com/view/55684/search-value-by-key-in-multidimensional-array/</guid>
</item>
<item>
<title>(PHP) Find the parent key of a value in a two-dimensional array - jatkins</title>
<link>http://snipplr.com/view/54937/find-the-parent-key-of-a-value-in-a-twodimensional-array/</link>
<description><![CDATA[ <p>Released to the public domain. Example: you have an array, `$seasons = array('Summer' => array('June', 'July', 'August'), 'Autumn' => array('September', 'October', 'November'), 'Winter' => array('December', 'January', 'February'), 'Spring' => array('March', 'April', 'May'));`. Running `print_r(find_keys_based_on_value('October', $seasons));` will is equivalent to `print_r(array('Autumn' => array('September', 'October', 'November');`. _**By default, the script will keep searching until it reaches the end of the array.**_ To stop at the first match, call with `$first_only` set to `true`. To return only the key name(s), call with `$key_names_only` set to `true`.</p> ]]></description>
<pubDate>Tue, 07 Jun 2011 02:06:05 GMT</pubDate>
<guid>http://snipplr.com/view/54937/find-the-parent-key-of-a-value-in-a-twodimensional-array/</guid>
</item>
<item>
<title>(PHP) Thesis: Change search-box text - psteinweber</title>
<link>http://snipplr.com/view/52746/thesis-change-searchbox-text/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 28 Apr 2011 19:58:18 GMT</pubDate>
<guid>http://snipplr.com/view/52746/thesis-change-searchbox-text/</guid>
</item>
<item>
<title>(PHP) Search Posts Only - zealmurapa</title>
<link>http://snipplr.com/view/52326/search-posts-only/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 19 Apr 2011 22:09:07 GMT</pubDate>
<guid>http://snipplr.com/view/52326/search-posts-only/</guid>
</item>
<item>
<title>(PHP) nested Array search by value or key - Japan</title>
<link>http://snipplr.com/view/51108/nested-array-search-by-value-or-key/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 25 Mar 2011 12:40:27 GMT</pubDate>
<guid>http://snipplr.com/view/51108/nested-array-search-by-value-or-key/</guid>
</item>
<item>
<title>(PHP) MySQL Search/Category Filter - mattneary</title>
<link>http://snipplr.com/view/47702/mysql-searchcategory-filter/</link>
<description><![CDATA[ <p>I thought this was pretty elegant code and wanted to share it with anyone who found it useful.</p> ]]></description>
<pubDate>Sat, 22 Jan 2011 09:09:34 GMT</pubDate>
<guid>http://snipplr.com/view/47702/mysql-searchcategory-filter/</guid>
</item>
<item>
<title>(PHP) Prevent Web Page from Expiring - bradless</title>
<link>http://snipplr.com/view/46885/prevent-web-page-from-expiring/</link>
<description><![CDATA[ <p>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.</p> ]]></description>
<pubDate>Tue, 11 Jan 2011 01:50:39 GMT</pubDate>
<guid>http://snipplr.com/view/46885/prevent-web-page-from-expiring/</guid>
</item>
<item>
<title>(PHP) 301 Redirect Empty WordPress Searches to Root - baires</title>
<link>http://snipplr.com/view/46037/301-redirect-empty-wordpress-searches-to-root/</link>
<description><![CDATA[ <p>A blank search in wordpress returns all the posts, which could be taken as duplicate content if that got indexed.</p> ]]></description>
<pubDate>Wed, 22 Dec 2010 14:41:42 GMT</pubDate>
<guid>http://snipplr.com/view/46037/301-redirect-empty-wordpress-searches-to-root/</guid>
</item>
<item>
<title>(PHP) Wordpress Search Results Number - laurentzziu</title>
<link>http://snipplr.com/view/44139/wordpress-search-results-number/</link>
<description><![CDATA[ <p>Add this in search.php</p> ]]></description>
<pubDate>Mon, 15 Nov 2010 02:42:32 GMT</pubDate>
<guid>http://snipplr.com/view/44139/wordpress-search-results-number/</guid>
</item>
<item>
<title>(PHP) php Prepared Statement Search (Needs Improvement) - JonnySnip3r</title>
<link>http://snipplr.com/view/43510/php-prepared-statement-search-needs-improvement/</link>
<description><![CDATA[ <p>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</p> ]]></description>
<pubDate>Thu, 04 Nov 2010 01:50:06 GMT</pubDate>
<guid>http://snipplr.com/view/43510/php-prepared-statement-search-needs-improvement/</guid>
</item>
<item>
<title>(PHP) Drupal get total number of search results from pager - jonathanpglick</title>
<link>http://snipplr.com/view/43453/drupal-get-total-number-of-search-results-from-pager/</link>
<description><![CDATA[ <p>The total number of search results can be added in a hook_preprocess_search_results() function from the following variable:</p> ]]></description>
<pubDate>Wed, 03 Nov 2010 04:52:52 GMT</pubDate>
<guid>http://snipplr.com/view/43453/drupal-get-total-number-of-search-results-from-pager/</guid>
</item>
<item>
<title>(PHP) Enlight search results in your WordPress blog - newsok</title>
<link>http://snipplr.com/view/42932/enlight-search-results-in-your-wordpress-blog/</link>
<description><![CDATA[ <p>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; }</p> ]]></description>
<pubDate>Tue, 26 Oct 2010 03:31:13 GMT</pubDate>
<guid>http://snipplr.com/view/42932/enlight-search-results-in-your-wordpress-blog/</guid>
</item>
<item>
<title>(PHP) Enlight a word from text - newsok</title>
<link>http://snipplr.com/view/42931/enlight-a-word-from-text/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 26 Oct 2010 03:28:00 GMT</pubDate>
<guid>http://snipplr.com/view/42931/enlight-a-word-from-text/</guid>
</item>
<item>
<title>(PHP) new york times article api function - adkatrit</title>
<link>http://snipplr.com/view/42380/new-york-times-article-api-function/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 16 Oct 2010 06:07:50 GMT</pubDate>
<guid>http://snipplr.com/view/42380/new-york-times-article-api-function/</guid>
</item>
<item>
<title>(PHP) get nth occurance of a string by jaimthorn[at]yahoo[dot]com - mladoux</title>
<link>http://snipplr.com/view/40839/get-nth-occurance-of-a-string-by-jaimthornatyahoodotcom/</link>
<description><![CDATA[ <p>Jaim Thorn\'s handy iterating string searcher.</p> ]]></description>
<pubDate>Tue, 21 Sep 2010 18:21:32 GMT</pubDate>
<guid>http://snipplr.com/view/40839/get-nth-occurance-of-a-string-by-jaimthornatyahoodotcom/</guid>
</item>
<item>
<title>(PHP) Codeigniter Auto Complete Search - myke</title>
<link>http://snipplr.com/view/40578/codeigniter-auto-complete-search/</link>
<description><![CDATA[ <p>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 you must enable these in your Codeigniter settings to work properly.\r\n\r\nThis example uses POST variables instead so the js is modified accordingly.</p> ]]></description>
<pubDate>Thu, 16 Sep 2010 13:15:33 GMT</pubDate>
<guid>http://snipplr.com/view/40578/codeigniter-auto-complete-search/</guid>
</item>
<item>
<title>(PHP) Only search WP posts - myke</title>
<link>http://snipplr.com/view/39196/only-search-wp-posts/</link>
<description><![CDATA[ <p>To exclude pages from wordpress search results include the following in your theme's functions.php</p> ]]></description>
<pubDate>Wed, 18 Aug 2010 01:35:25 GMT</pubDate>
<guid>http://snipplr.com/view/39196/only-search-wp-posts/</guid>
</item>
</channel>
</rss>
