News Feed
Jobs Feed
Sections




News Archive
DevShed:
The preg_replace_callback() function in PHP
September 10, 2008 @ 11:19:07

DevShed has a new article posted today spotlighting the preg_replace_callback function and how it compares to a normal preg_replace call in some everyday situations.

The preg_replace_callback() function is an under-utilized and little documented PHP function that you will find useful and powerful in many situations, especially if you have been actively using preg_match() and preg_replace(). In this article, you will find a clear explanation of what this function does, together with carefully crafted examples that illustrate some of its uses.

They show how to use it in a few different situations - inside conditional statements, for loops, in a sequence and inside of a class to manipulate matched strings with external functions (both native to PHP and user-defined).

0 comments voice your opinion now!
tutorial pregreplacecallback regular expression


blog comments powered by Disqus

Similar Posts

Fabien Potencier's Blog: The state of YAML in PHP

Till Klampaeckel: Continuous Integration: Automated database setup with Doctrine on Travis-CI

Zend Developer Zone: AJAX Chat Tutorial 4

Venture Skills Blog: Want to create a site like Digg with no programming?

Michael Maclean's Blog: Using Pango for PHP: a taster


Community Events











Don't see your event here?
Let us know!


introduction release database language zendframework2 podcast phpunit community development interview testing conference usergroup rest series opinion google functional symfony2 framework

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework