php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13871 'for()'-error using chars as break
Submitted: 2001-10-30 09:15 UTC Modified: 2001-10-30 09:55 UTC
From: Martin dot Schmitz at Uni-Bielefeld dot de Assigned:
Status: Not a bug Package: *Programming Data Structures
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Martin dot Schmitz at Uni-Bielefeld dot de
New email:
PHP Version: OS:

 

 [2001-10-30 09:15 UTC] Martin dot Schmitz at Uni-Bielefeld dot de
<?PHP

for($i='A'; $i<='Z'; $i++){
  echo $i;
}

?>

// I hoped to see 'A B C....Y Z'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-30 09:55 UTC] brianlmoon@php.net
The ++ only works with numeric variables.  Try the example that was emailed to you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 03:01:28 2024 UTC