Phorm/Widget.class.php
/**
	 * Serializes an array of key=>value pairs as an HTML attributes string.
	 *
	 * @param array $attributes key=>value pairs corresponding to HTML attributes' name=>value
	 * @return string the serialized HTML
	 */
Serializes an array of key=>value pairs as an HTML attributes string.

@param array $attributes key=>value pairs corresponding to HTML attributes' name=>value
@return string the serialized HTML
Serializes an array of key = > value pairs as an HTML attributes string . @param array $attributes key = > value pairs corresponding to HTML attributes ' name = > value @return string the serialized HTML
protected function serialize_attributes(array $attributes=array())
	{
		if(empty($attributes))
		{
			return '';
		}
		$attr = array();
		foreach( $attributes as $key => $val )
		{
			$attr[] = $key.'="'.$val.'"';
		}
		return ' '.implode(' ', $attr).' ';
	}
protected function serialize_attributes ( array $ attributes = array ( ) ) { if ( empty ( $ attributes ) ) { return '' ; } $ attr = array ( ) ; foreach ( $ attributes as $ key => $ val ) { $ attr [ ] = $ key . '="' . $ val . '"' ; } return ' ' . implode ( ' ' , $ attr ) . ' ' ; }
Serializes an array of key=>value pairs as an HTML attributes string.
Serializes an array of key = > value pairs as an HTML attributes string .