<?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, 22 May 2013 05:29:58 GMT</pubDate>
<item>
<title>(PHP) WordPress: Search Posts by Custom Post Type - depiction</title>
<link>http://snipplr.com/view/70563/wordpress-search-posts-by-custom-post-type/</link>
<description><![CDATA[ <p>Add the ability to search posts by custom post types.</p> ]]></description>
<pubDate>Wed, 27 Mar 2013 04:34:37 GMT</pubDate>
<guid>http://snipplr.com/view/70563/wordpress-search-posts-by-custom-post-type/</guid>
</item>
<item>
<title>(PHP) PHP Search String in Array - Case Insensitive - kosinix</title>
<link>http://snipplr.com/view/68554/php-search-string-in-array--case-insensitive/</link>
<description><![CDATA[ <p>Use it similar to in_array function of PHP.</p> ]]></description>
<pubDate>Wed, 14 Nov 2012 11:10:51 GMT</pubDate>
<guid>http://snipplr.com/view/68554/php-search-string-in-array--case-insensitive/</guid>
</item>
<item>
<title>(PHP) Find a file (including subdirectory search) - VisionHive</title>
<link>http://snipplr.com/view/67021/find-a-file-including-subdirectory-search/</link>
<description><![CDATA[ <p>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 maximum number of comparisons is reached. The return value is relative to the executing script, so you can safely pass this function to other file-handling functions, e.g. fopen(FFIND("my.file")); or file(FFIND("my.file"));</p> ]]></description>
<pubDate>Sat, 01 Sep 2012 13:39:00 GMT</pubDate>
<guid>http://snipplr.com/view/67021/find-a-file-including-subdirectory-search/</guid>
</item>
<item>
<title>(PHP) Recursive Array Key Search - MonsterDev</title>
<link>http://snipplr.com/view/66127/recursive-array-key-search/</link>
<description><![CDATA[ <p>Search recursively some value in array with the key name</p> ]]></description>
<pubDate>Fri, 13 Jul 2012 23:54:53 GMT</pubDate>
<guid>http://snipplr.com/view/66127/recursive-array-key-search/</guid>
</item>
<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>
</channel>
</rss>