note 22045 rejected from ref.strings by torben
| From: | torben@php.net | Date: | Tue, 04 Jun 2002 19:52:18 +0000 |
| Subject: | note 22045 rejected from ref.strings by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-31449@lists.php.net to get a copy of this message | ||
The string functions' parameters need to be standardized. For instance, str_replace takes the
search string first, then the replacement, and then the subject. Other functions, such as strstr
and strpos, all take the subject first, and then the search string. This makes it rather confusing,
as I continue to have to go back to documentation to jog my memory. it would just be much easier if
the functions' parameter orders were standardized.