php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13109 Differences in echoing 01 to 07 and 08 to 09
Submitted: 2001-09-03 11:08 UTC Modified: 2001-09-03 12:24 UTC
From: guido dot heckmann at wwl dot de Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.0.6 OS: Windows NT 4.0 build 1381
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: guido dot heckmann at wwl dot de
New email:
PHP Version: OS:

 

 [2001-09-03 11:08 UTC] guido dot heckmann at wwl dot de
When I write the following:

$monat = 01;
echo $monat;

the echovalue is: 1

but with:

$monat = 08;
echo $monat;

the echovalue is: 0


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-03 12:24 UTC] sander@php.net
The 0 means that the number is in octal representation. Octal 8 doesn't exists, octal uses only 0-7.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC