Return to Snippet

Revision: 57270
at May 23, 2012 21:08 by pruntrut


Initial Code
function stripCp($string )
{
	$wordlist = array("CP", "case", "postale","Case","Postale","cp");
		foreach($wordlist as $word)
	   	{  
			$string = str_replace($word, "", $string); 
		}
	return $string;
}

Initial URL

                                

Initial Description
Remove specific words from a string

Initial Title
Remove specific words from a string

Initial Tags
php

Initial Language
PHP