> I want to be sure, that preg_replace replaces all matches. But it
> doesn't accept the /g modifier. And anyhow, there's no preg_replace_all
> like there is an preg_match_all. Will preg_replace replace everything by
> default?

from php.net:

mixed preg_replace ( mixed pattern, mixed replacement, mixed subject
[, int limit])

Searches subject for matches to pattern and replaces them with
replacement. If limit is specified, then only limit matches will be
replaced; if limit is omitted or is -1, then all matches are replaced.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to