Cynic <[EMAIL PROTECTED]> writes:

> why is it bad?

Because it's quite normal for functions like str_replace to be *much*
faster than preg_replace, but since str_replace on arrays is slower
(due to iterating over them using PHP code) you have to use preg_replace.

I'll happily use preg_replace whenever I need to do some Regular
Expression replacement, but when I want to do normal text replacement
I expect str_replace to give me the same flexibility as preg_replace.

That's why!

- Jan Borsodi <[EMAIL PROTECTED]> - Systems Engineer @ eZ systems - Web:
  QtVu:  -  RegExplorer:
  EMacro:  -  Apollo:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to