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 1495 posted 9 years ago by johansonkatherine
replace special characters
0 643 posted 11 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 643 posted 12 years ago by inreflection7
0 483 posted 12 years ago by kyabas
0 950 posted 13 years ago by irmantas
0 678 posted 14 years ago by petrafull
0 710 posted 14 years ago by Zwendel
You can get hostname from script environment - getenv("HTTP_HOST") (?!'.$host.') matches URLs always except local links
0 608 posted 14 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 659 posted 14 years ago by kossmoss
// FUNCION BY Ahmet Alp Balkan // http://www.ahmetalpbalkan.com
2 714 posted 15 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 761 posted 15 years ago by oso96_2000
Strip out non-alphanumeric characters. Very useful for use with filenames.
3 696 posted 16 years ago by andyhartleeds
« Prev 1 Next »