0

I have a string and I only need to leave what is between the square brackets and the quotes. How can this be done using str_replace() and regexp or are there some other better options?

$text = '<![DATA[ "Text & text "txt"." ]]>';

$text = 'Text & text "txt".';  // How can you get such a result?
Sanya
  • 21
  • 3

0 Answers0