Page 1 of 1

Output of Preg_match_all

Posted: Wed Sep 24, 2008 1:48 am
by swetha
The output of print_r($match) in preg_match_all is displayed horizontally.
Array ( [0] => Array ( [0] => Array ( [0] => a [1] => 0 ) [1] => Array ( [0] => b [1] => 1 ) [2] => Array ( [0] => c [1] => 2 ) ) )

e.g how do i display the output vertically?

Array ( [0] =>
Array ( [0] =>
Array
( [0] => a
[1] => 0 )
)


thanks for help

Re: Output of Preg_match_all

Posted: Wed Sep 24, 2008 5:17 am
by jayshields
Use the <pre> HTML element.