Umm, that doesn't seem like a good idea, since you either don't know what is assigned to $string in the first place (user input), or you do know what's assigned here in the first place, and might just as well do
$google = 12
in the first place.
If it is user input, what you ask for can be done, but why not simply
$array = explode(' ', $string);
foreach($array as $element) {
echo substr($element, strpos($element, '=') + 1) . '<br/>';
}