Page 1 of 1

Printing the result of regexp

Posted: Wed Sep 24, 2008 2:27 am
by swetha
Hi,
when i print the result of preg_match using
print_r ($matches),the contents of the array are all displayed in one line.
like this?
Array ( [0] => Array ( [0] => Array ( [0] => a [1] => 0 ) [1] => Array ( [0] => b [1] => 1 ) [2] => Array ( [0] => c [1] => 2 ) ) )

how do i display the contents of the array in seperate lines?

Re: Printing the result of regexp

Posted: Wed Sep 24, 2008 3:08 am
by prometheuzz