note 100509 rejected from function.preg-replace by danbrown

From: Date: Wed, 20 Oct 2010 13:42:37 +0000
Subject: note 100509 rejected from function.preg-replace by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173314@lists.php.net to get a copy of this message
Note Submitter: info at brokerfinances dot com ---- I have a problem with this code: <?php $string = 'The quick brown fox jumped over the lazy dog.'; $patterns = array(); $patterns[0] = '/quick/'; $patterns[1] = '/brown/'; $patterns[2] = '/fox/'; ....... $patterns[94] = '/other/'; $replacements = array(); $replacements[0] = 'slow'; $replacements[1] = 'black'; $replacements[2] = 'bear'; ....... $replacements[94] = 'another'; echo preg_replace($patterns, $replacements, $string); ?> when i have defined from 0 to 94 $patterns and $replacements components all work ok. But when add the 95 $pattern the php program crash (blank page is returned by the server) Any body know the solution?

« previous php.notes (#173314) next »