#40353 [Bgs]: The format of strpos
| From: | des at envious dot nl | Date: | Sun, 04 Feb 2007 17:42:32 +0000 |
| Subject: | #40353 [Bgs]: The format of strpos | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108393@lists.php.net to get a copy of this message | ||
ID: 40353
User updated by: des at envious dot nl
Reported By: des at envious dot nl
Status: Bogus
Bug Type: Feature/Change Request
Operating System: FreeBSD
PHP Version: 4.4.4
New Comment:
I see.
who can?
Previous Comments:
------------------------------------------------------------------------
[2007-02-04 17:36:35] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Weird or not, we can not change it.
------------------------------------------------------------------------
[2007-02-04 16:33:12] des at envious dot nl
Description:
------------
the STRPOS format is different than almost every other, which is to my
personal opinion odd. str_replace and in_array for example have the
source variable in the last part of the function (in_array($this,
$source), str_replace($this, $that, $source)) but strpos doesn't
(strpos($source,$this)).
Isn't this odd?
Actual result:
--------------
strpos($this, $source);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40353&edit=1