Menu
Hello
I have a big $text_log variable containing this
value1 value2 value3 -value4-
value1 value2 value3 -value4-
value1 value2 value3 -value4-
….
….
value1 value2 value3 -value4-
value1 value2 value3 -value4-
I need to replace the 1th “-” of each line with nothing “”
and the last “-” of each line with a space ” “.
Only in this way I could explode $text correctly for my array
usage .
How to do ?
I tried with str_replace , without success .
Any idea how can do that ?
Thank you