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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sat Dec 21 16:01:28 2024 UTC