|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-21 12:21 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 06:00:01 2025 UTC |
// this is a test string i used $value="i|s:24:\"Hallo Dies Ist Ein TTTst ZZZ rrr\""; // this is the regular expression string $s="^([a-z_]{1,})\|([a-z]{1}):([0-9]{1,}):\"(.*) (.*) (.*)\""; eregi($s,$value,$werte); echo "sizeof($werte): "sizeof($werte); foreach($werte as $f) { echo $f."<br>"; } // OUTPUT sizeof($werte): 10 i|s:24:"Hello this Is A Test ZZZ rrr" i s 24 Hello this Is A Test ZZZ rrr the is the size of the array the size is not scaleable its fix the size is always 10 if i use another regular expression like $s="^([a-z_]{1,})\|([a-z]{1}):([0-9]{1,}):\"(.*) (.*) (.*) (.*) (.*) (.*) (.*)\""; the last "rrr" is not a value of the result