#40353 [Opn->Bgs]: The format of strpos

From: Date: Sun, 04 Feb 2007 17:36:35 +0000
Subject: #40353 [Opn->Bgs]: The format of strpos
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108392@lists.php.net to get a copy of this message
ID: 40353 Updated by: derick@php.net Reported By: des at envious dot nl -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: FreeBSD PHP Version: 4.4.4 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#108392) next »