|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62579 two strings compare
Submitted: 2012-07-16 12:21 UTC Modified: 2012-07-16 12:51 UTC
From: bugzilla33 at gmail dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 5.4.5RC1 OS: win7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
43 + 24 = ?
Subscribe to this entry?

 [2012-07-16 12:21 UTC] bugzilla33 at gmail dot com
two strings compare

Test script:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-16 12:36 UTC]
=== should be used for exact matching.
 [2012-07-16 12:41 UTC] bugzilla33 at gmail dot com
Why should be used === for exact matching?

left is string and right is string - the same type
 [2012-07-16 12:49 UTC]
I think you'll find this page useful :)
 [2012-07-16 12:51 UTC]
-Status: Open +Status: Not a bug
 [2012-07-16 12:51 UTC]
Also this for further reading
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Mar 31 07:01:23 2020 UTC