I have an array that looks like the one below, I would like to check if the next elem starts with a space, if it does, concatenate it to the previous elem.
[1] => Array (
[1] => lenny/volatile/main Packages
[2] => lenny/volatile/main Packages
[3] => lenny/volatile/main Sources
[4] => Reading package
[5] => lenny/volatile/main Sources
)
Output:
[1] => Array (
[1] => lenny/volatile/main Packages
[2] => lenny/volatile/main Packages
[3] => lenny/volatile/main Sources Reading package
[5] => lenny/volatile/main Sources
)
Thanks!