preg match all - Extract Text from a string in PHP

Solution:
Use a combination of{-code-1}
to find the line breaks, and{-code-2}
to extract the text between the first and second line break. This text includes the dashes (-
) so I included astr_replace
to remove them.
$string = 'navigation pane or double clicking folders in the details pane.
Navigating the folder structure
Answer
This will print the desired text
Answer
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: mark bundle as not supporting multiuse
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.