[thelist] PHP regex script returns empty array

Madhu Menon chef at shiokfood.com
Sat Apr 11 07:32:09 CDT 2009

Jack Timmons wrote:
> In short, preg_match_all returns a multi-dimensional array. You either play
> with the default, or tell PHP how you want that array formatted.
> So, $results[0] is an array containing the text that matches the pattern you
> provided. From then on, $results[n] (n>0) will match for each capture you
> provide.
Yes, but the echo statement part of the foreach function in my code 
sample isn't outputting the array contents, which is the problem I stated.

<<<   *   >>>
Madhu Menon
Shiok Far-eastern Cuisine   |   Moss Cocktail Lounge
96, Amar Jyoti Layout, Inner Ring Road, Bangalore 
@ http://shiokfood.com  &  http://mosslounge.com
Join the Moss group: http://www.facebook.com/group.php?gid=39295417270

More information about the thelist mailing list