same as title, i want converter string:
$str = "#0 C:\wamp\www\test\err\index.php(19): b('123')
#1 C:\wamp\www\test\err\index.php(27): a()
#2 {main}";
to array look like this:
$arr = array(
0 => '#0 C:\wamp\www\test\err\index.php(19): b('123')',
1 => '#1 C:\wamp\www\test\err\index.php(27): a()',
2 => '#2 {main}',
);
i try using $arr = explode("\n", $str); but not working,
somebody can help me???