Edition:
need help splitting an array
Array Example
:
array ( [0] => :some normal text :some long text here, and so on... sometimes i'm breaking down and... :some normal text :some normal text )
ok now using
preg_split( '#\n(?!s)#' , $text );
I get
[0] => Array ( [0] => some normal text [1] => some long text here, and so on... sometimes [2] => some normal text [3] => some normal text )
I want to get this:
[0] => Array ( [0] => some normal text [1] => some long text here, and so on... sometimes i'm breaking down and... [2] => some normal text [3] => some normal text )
that Regex can get the whole line, and also split it into line breaks !?
source share