I need help with working with one String using PHP.
String Example:
This is line
this is second line
this is third line
xyz next line
this is fifth line
How to delete line starts with "xyz" without using string function explode()
with comparing beginning of each row?
All I need is to find "xyz" and delete this row to end. I hope that exist simpler solution like explode with comparing each row.