note 105015 deleted from function.str-replace by danbrown

From: Date: Fri, 22 Jul 2011 16:12:59 +0000
Subject: note 105015 deleted from function.str-replace by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181792@lists.php.net to get a copy of this message
Note Submitter: trueleader at gmx dot de ---- @dave dot haefliger at gmail dot com $count contains only the number of replacements which had been done. You cant specify the number of replacements to do. <?php $count=1; echo str_replace("a", "b", "", $count).": ".$count; // Outputs: bb: 2

« previous php.notes (#181792) next »