|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-08-31 06:26 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 18:00:01 2025 UTC |
I'm not sure, if it's really an error or "feature" :). I would like to get $regs[10] value, but the output is always empty. <script language="php"> $string = "1234567890"; ereg( "^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)", $string, $regs); echo "Whole string: " . $regs[ 0 ] . "<br>"; for ( $i = 1; $i <= 10; $i++ ) { echo "<br>" . $i . " -> " . $regs[$i]; } </script>