Return to Snippet

Revision: 37896
at December 19, 2010 15:15 by iloveitaly

Initial Code
function getAddress($dbObject) {
	$keys = array('address1', 'city', 'providence', 'postal_code');
	$values = array();
	foreach($keys as $key)
			$values[] = $dbObject->$key;
	return implode(' ', $values);

Initial URL

Initial Description
Useful when used with the google map directions function

Initial Title
Generate Address String from Array / Object

Initial Tags
object, array

Initial Language