How to split a string between two delimiters in php -


I would like to split the string with a full string containing two delimiters. For example

  string1 = ABC * welcome * cdf  

I should extract it welcome .

Note: Delimiters can have a string of string (not static), but I need only strings between those two delimiters

Thanks in advance.

  $ string1 = 'abc * welcome * cdf'; List (, $ myString,) = explosion ('*', $ string1); Echo $ myString;  

Comments