php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #40353 The format of strpos
Submitted: 2007-02-04 16:33 UTC Modified: 2007-02-04 17:42 UTC
From: des at envious dot nl Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.4.4 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: des at envious dot nl
New email:
PHP Version: OS:

 

 [2007-02-04 16:33 UTC] 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);


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-04 17:36 UTC] 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 17:42 UTC] des at envious dot nl
I see.

who can?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 10:01:29 2025 UTC