I want to search a string for quotation marks ("") and then to assign the contents between the quotation marks to a variable. How can this be done?
preg_match()
Example:
$string = ' This is a "lovely" day. '; preg_match("/\"(.*)\"/",$string, $match); $word = $match[0];
Note: the above is rough. Not sure if it would work or not, but you should get the general idea.