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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 13:01:30 2024 UTC