Page 1 of 1

grab text between ""

Posted: Thu Aug 05, 2010 5:13 am
by pedroz
$string = 'var togo = "gowentgone"';

how can i grab the text with preg_match_all?
preg_match_all('/"(.*)"/i', $string, $result) ;

Re: grab text between ""

Posted: Thu Aug 05, 2010 6:50 am
by superdezign
Are you asking about the format of the return value? The manual can answer that question for you.