php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12584 Var. comparison
Submitted: 2001-08-05 18:39 UTC Modified: 2001-08-05 18:48 UTC
From: Oliver dot Siegmar at gmx dot de Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.0.5 OS: Debian GNU/Linux [woody]
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Oliver dot Siegmar at gmx dot de
New email:
PHP Version: OS:

 

 [2001-08-05 18:39 UTC] Oliver dot Siegmar at gmx dot de
Hi $reader,


perhaps I'm tired out...but:

<?
	$testvar = true;
	if ($testvar == "DOUBLE") echo "WHY?";
?>


...why the script output is 'WHY?' ?
Bug or feature? :-)


Bye,
Oliver

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-05 18:48 UTC] andy@php.net
any string that is not empty evaluates true.

(*Andy*)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 03:01:29 2024 UTC