Edit report at https://bugs.php.net/bug.php?id=62579&edit=1
ID: 62579 Comment by: a...@php.net Reported by: bugzilla33 at gmail dot com Summary: two strings compare Status: Open Type: Bug Package: Strings related Operating System: win7 PHP Version: 5.4.5RC1 Block user comment: N Private report: N New Comment: I think you'll find this page useful :) http://www.php.net/manual/en/language.operators.comparison.php Previous Comments: ------------------------------------------------------------------------ [2012-07-16 12:41:53] 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:36:16] a...@php.net === should be used for exact matching. ------------------------------------------------------------------------ [2012-07-16 12:21:13] bugzilla33 at gmail dot com Description: ------------ two strings compare Test script: --------------- var_dump('00'=='000') Expected result: ---------------- bool(false) Actual result: -------------- bool(true) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62579&edit=1