php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15626 Max result in ereg
Submitted: 2002-02-19 12:54 UTC Modified: 2002-02-19 13:02 UTC
From: xbouli at hotmail dot com Assigned:
Status: Not a bug Package: Regexps related
PHP Version: 4.0.6 OS: Win 95
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: xbouli at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-02-19 12:54 UTC] xbouli at hotmail dot com
When i try this code , i can't get more than the 9th result.

<?

$string = "abcdefghijklmnopqrstuvwxyz";

ereg ("^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.).*$", $string, $buffer) ;
print $string."<BR>";
$i=1;
while ($i<20){ 
	print "$i : $buffer[$i]<br>";
	$i++;
}

?>

Thanks.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-19 13:02 UTC] jan@php.net
This is not a bug. Please double-check the documentation available
at http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 04 08:01:28 2024 UTC