note 22045 added to ref.strings
| From: | jewfish at jewfish dot net | Date: | Tue, 04 Jun 2002 19:08:01 +0000 |
| Subject: | note 22045 added to ref.strings | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31442@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.
--
http://www.php.net/manual/en/ref.strings.php
http://master.php.net/manage/user-notes.php?action=edit+22045
http://master.php.net/manage/user-notes.php?action=delete+22045
http://master.php.net/manage/user-notes.php?action=reject+22045