Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged replace



« Prev 1 Next »
The following code sample shows how developers can replace multiple texts in a single API call in a PDF file using Aspose.Pdf for Cloud API in their applications. Developers can use Aspose REST API with any language: .NET, Java, PHP, Ruby, Rails, Pyt...
0 271 posted 6 years ago by johansonkatherine
replace special characters
0 99 posted 8 years ago by Narayon
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.
0 103 posted 8 years ago by inreflection7
0 67 posted 9 years ago by kyabas
0 123 posted 9 years ago by irmantas
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 :)
0 73 posted 10 years ago by LuckyShot
0 110 posted 10 years ago by petrafull
0 97 posted 10 years ago by Zwendel
Parse syntax in a text using preg_replace_callback.
2 86 posted 11 years ago by caioariede
You can get hostname from script environment - getenv("HTTP_HOST") (?!'.$host.') matches URLs always except local links
0 68 posted 11 years ago by kossmoss
Affects <A> tags for links starting with $link Example: LinkReplacer ($text, 'http://www.snipplr.com') affects to <a href="http://www.snipplr.com">Snipplr</a> and <a href="http://www.snipplr.com/blog">Snipplr Blog</a>
0 99 posted 11 years ago by kossmoss
// FUNCION BY Ahmet Alp Balkan // http://www.ahmetalpbalkan.com
2 102 posted 11 years ago by prf_q
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...
1 93 posted 12 years ago by oso96_2000
Strip out non-alphanumeric characters. Very useful for use with filenames.
3 80 posted 12 years ago by andyhartleeds
« Prev 1 Next »