public function GetCustomAttributes() { $strToReturn = ''; if ($this->strCustomAttributeArray) { foreach ($this->strCustomAttributeArray as $strKey => $strValue) { $strToReturn .= sprintf('%s="%s" ', $strKey, $strValue); } } return $strToReturn; }