<?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/replace</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 15 Feb 2012 18:18:38 GMT</pubDate>
<item>
<title>(PHP) Replace string in PHP - inreflection7</title>
<link>http://snipplr.com/view/62102/replace-string-in-php/</link>
<description><![CDATA[ <p>Search for a string, if matched replace with second provided paramater. Third parameter is the variable whose value is the string you'd like to search.</p> ]]></description>
<pubDate>Fri, 23 Dec 2011 08:35:53 GMT</pubDate>
<guid>http://snipplr.com/view/62102/replace-string-in-php/</guid>
</item>
<item>
<title>(PHP) str_replace_once - kyabas</title>
<link>http://snipplr.com/view/54438/strreplaceonce/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 27 May 2011 00:28:42 GMT</pubDate>
<guid>http://snipplr.com/view/54438/strreplaceonce/</guid>
</item>
<item>
<title>(PHP) Regex replace url to link - irmantas</title>
<link>http://snipplr.com/view/44215/regex-replace-url-to-link/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 15 Nov 2010 21:46:07 GMT</pubDate>
<guid>http://snipplr.com/view/44215/regex-replace-url-to-link/</guid>
</item>
<item>
<title>(PHP) PHP : convertir des retours à la ligne en entité html  avec la fonction nl2br() - alexandrepayet</title>
<link>http://snipplr.com/view/31928/php--convertir-des-retours--la-ligne-en-entit-html--avec-la-fonction-nl2br/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 15 Apr 2010 06:42:17 GMT</pubDate>
<guid>http://snipplr.com/view/31928/php--convertir-des-retours--la-ligne-en-entit-html--avec-la-fonction-nl2br/</guid>
</item>
<item>
<title>(PHP) PHP : Remplacer une partie d'une chaîne par une autre en php avec str_replace() - alexandrepayet</title>
<link>http://snipplr.com/view/31903/php--remplacer-une-partie-dune-chane-par-une-autre-en-php-avec-strreplace/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 15 Apr 2010 01:58:33 GMT</pubDate>
<guid>http://snipplr.com/view/31903/php--remplacer-une-partie-dune-chane-par-une-autre-en-php-avec-strreplace/</guid>
</item>
<item>
<title>(PHP) Improving WordPress’ the_excerpt() template tag - Xtraboy</title>
<link>http://snipplr.com/view/28925/improving-wordpress-theexcerpt-template-tag/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 25 Feb 2010 14:07:17 GMT</pubDate>
<guid>http://snipplr.com/view/28925/improving-wordpress-theexcerpt-template-tag/</guid>
</item>
<item>
<title>(PHP) Replace Excerpt Ellipsis with Permalink - Xtraboy</title>
<link>http://snipplr.com/view/28924/replace-excerpt-ellipsis-with-permalink/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 25 Feb 2010 13:51:03 GMT</pubDate>
<guid>http://snipplr.com/view/28924/replace-excerpt-ellipsis-with-permalink/</guid>
</item>
<item>
<title>(PHP) PHP 半角英数以外の削除 - daisuke103</title>
<link>http://snipplr.com/view/25463/php-/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 26 Dec 2009 07:22:43 GMT</pubDate>
<guid>http://snipplr.com/view/25463/php-/</guid>
</item>
<item>
<title>(PHP) Wordpress - Accurate Trim text function - LuckyShot</title>
<link>http://snipplr.com/view/23967/wordpress--accurate-trim-text-function/</link>
<description><![CDATA[ <p>Add to your functions.php in the active template. 

Remove commented text. Fat/Thin char detection still not implemented. I'll update it as soon as I get some time. If you come with it please let me know :)</p> ]]></description>
<pubDate>Tue, 01 Dec 2009 05:30:58 GMT</pubDate>
<guid>http://snipplr.com/view/23967/wordpress--accurate-trim-text-function/</guid>
</item>
<item>
<title>(PHP) PHP replace words in a string - petrafull</title>
<link>http://snipplr.com/view/21976/php-replace-words-in-a-string/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 27 Oct 2009 13:21:39 GMT</pubDate>
<guid>http://snipplr.com/view/21976/php-replace-words-in-a-string/</guid>
</item>
<item>
<title>(PHP) Remove all non word characters - Zwendel</title>
<link>http://snipplr.com/view/21293/remove-all-non-word-characters/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 16 Oct 2009 04:10:48 GMT</pubDate>
<guid>http://snipplr.com/view/21293/remove-all-non-word-characters/</guid>
</item>
<item>
<title>(PHP) Replace MS Smart Quotes In PHP - SteveMcDaniel</title>
<link>http://snipplr.com/view/20913/replace-ms-smart-quotes-in-php/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 09 Oct 2009 18:16:31 GMT</pubDate>
<guid>http://snipplr.com/view/20913/replace-ms-smart-quotes-in-php/</guid>
</item>
<item>
<title>(PHP) Replace URLs in String with HTML Links - misteroneill</title>
<link>http://snipplr.com/view/19085/replace-urls-in-string-with-html-links/</link>
<description><![CDATA[ <p>This is a simple function to parse a string and turn any URLs it finds into links.  Adds a rel attribute to the link with a value of "nofollow" by default.</p> ]]></description>
<pubDate>Mon, 31 Aug 2009 23:53:00 GMT</pubDate>
<guid>http://snipplr.com/view/19085/replace-urls-in-string-with-html-links/</guid>
</item>
<item>
<title>(PHP) Regex Text Syntax Parser - caioariede</title>
<link>http://snipplr.com/view/13855/regex-text-syntax-parser/</link>
<description><![CDATA[ <p>Parse syntax in a text using preg_replace_callback.</p> ]]></description>
<pubDate>Tue, 07 Apr 2009 10:38:13 GMT</pubDate>
<guid>http://snipplr.com/view/13855/regex-text-syntax-parser/</guid>
</item>
<item>
<title>(PHP) Replace all the links except local - For redirecting - kossmoss</title>
<link>http://snipplr.com/view/13606/replace-all-the-links-except-local--for-redirecting/</link>
<description><![CDATA[ <p>You can get hostname from script environment - getenv("HTTP_HOST")
(?!'.$host.') matches URLs always except local links</p> ]]></description>
<pubDate>Mon, 30 Mar 2009 22:08:34 GMT</pubDate>
<guid>http://snipplr.com/view/13606/replace-all-the-links-except-local--for-redirecting/</guid>
</item>
<item>
<title>(PHP) Replace specified link tag in text - kossmoss</title>
<link>http://snipplr.com/view/13552/replace-specified-link-tag-in-text/</link>
<description><![CDATA[ <p>Affects  tags for links starting with $link
Example: LinkReplacer ($text, 'http://www.snipplr.com') affects to
Snipplr
and Snipplr Blog</p> ]]></description>
<pubDate>Sun, 29 Mar 2009 10:29:08 GMT</pubDate>
<guid>http://snipplr.com/view/13552/replace-specified-link-tag-in-text/</guid>
</item>
<item>
<title>(PHP) mysql replace - kokikr</title>
<link>http://snipplr.com/view/13534/mysql-replace/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 28 Mar 2009 16:39:16 GMT</pubDate>
<guid>http://snipplr.com/view/13534/mysql-replace/</guid>
</item>
<item>
<title>(PHP) Replace All Latin Accents - prf_q</title>
<link>http://snipplr.com/view/11171/replace-all-latin-accents/</link>
<description><![CDATA[ <p>// FUNCION BY Ahmet Alp Balkan
// http://www.ahmetalpbalkan.com</p> ]]></description>
<pubDate>Wed, 14 Jan 2009 10:08:56 GMT</pubDate>
<guid>http://snipplr.com/view/11171/replace-all-latin-accents/</guid>
</item>
<item>
<title>(PHP) Highlight within HTML/BBCode without source breaking - pateketrueke</title>
<link>http://snipplr.com/view/6718/highlight-within-htmlbbcode-without-source-breaking/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 14 Jun 2008 13:14:58 GMT</pubDate>
<guid>http://snipplr.com/view/6718/highlight-within-htmlbbcode-without-source-breaking/</guid>
</item>
<item>
<title>(PHP) Censor bad words with regexp - oso96_2000</title>
<link>http://snipplr.com/view/6332/censor-bad-words-with-regexp/</link>
<description><![CDATA[ <p>This function uses the power of regexp to check if some bad word are on the text, also offers the posibility to change those word for something else. Examples:\r\n\r\n$texto = \'fuck off!\';\r\nfiltrado($texto); returns true since a bad word has been found on the text\r\nfiltrado($texto, \'[censored]\'); //returns [censored] off!\r\n\r\nAnd because regexp, this will work with something like \"fck off!\". You can see a more detailed example here:\r\nhttp://www.otaku-anime.com/varios/filtro.php -- Example\r\nhttp://www.otaku-anime.com/varios/filtro.php?source -- Source code of the example</p> ]]></description>
<pubDate>Mon, 19 May 2008 16:39:57 GMT</pubDate>
<guid>http://snipplr.com/view/6332/censor-bad-words-with-regexp/</guid>
</item>
</channel>
</rss>
