Re: array_push

From: Date: Mon, 03 Sep 2012 05:02:06 +0000
Subject: Re: array_push
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.general 
Request: Send a blank email to php-general+get-318952@lists.php.net to get a copy of this message
Frank Arensmeier wrote:
2 sep 2012 kl. 19.48 skrev John Taylor-Johnston: Why not add two lines of code within the first loop? $chunks = explode("-30-", $mystring); foreach($chunks as $chunk) {
     preg_match_all("/News Releases\n(.+)/s", $chunk, $matches);
     foreach($matches[1] as $matched_text_line) {
     	$mynewarray[] = $matched_text_line;
     }
} Besides the regex, this is pretty basic php. /frank Thanks!
I'm still a newbie, (10 years later). I'm still fuzzy when it comes to arrays. John

« previous php.general (#318952) next »