note 42910 modified in function.str-replace by aidan

From: Date: Sun, 27 Jun 2004 13:44:10 +0000
Subject: note 42910 modified in function.str-replace by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71889@lists.php.net to get a copy of this message
When the first argument to str_replace() is an array, the elements are checked in increasing order of array index, as one would expect. For example, str_replace (array ('ABC', 'BC'), array ('E', 'F'), 'ABC') returns 'E'; str_replace (array ('BC', 'ABC'), array ('E', 'F'), 'ABC') returns 'AE'. --was-- When the first argument to str_replace() is an array, the elements are checked in increasing order of array index, as one would expect. For example, str_replace (array ('ABC', 'BC'), array ('E', 'F'), 'ABC') returns 'E'; but str_replace (array ('BC', 'ABC'), array ('E', 'F'), 'ABC') returns 'AE'. http://php.net/manual/en/function.str-replace.php

« previous php.notes (#71889) next »