I need to grab a text that is surrounded within quotes
assigned to a variable string
. This is how the content will be
Inspired and recalling tricks he learned from Doc and his friends, McQueen quickly emerges to lead the race into the final laps. Hicks, refusing to lose, sends Weathers into a dangerous accident. Seeing this and recalling Doc's fate, McQueen stops just short of the finish line, allowing Hicks to win, and drives back to push Weathers over the finish line. The crowd and media condemn Hicks' victory
string="Mickey"
and give praise to McQueen's sportsmanship. Though offered the Dinoco sponsorship deal, McQueen declines, insisting on staying with his current sponsors as an appreciation of their past support.
I need to grab Mickey
from this whole content.
I tried substr
on PHP , didn't help though. Any ideas ?
P.S. The string inside the quotes may vary.