format() public method
Formats the value based on the given format type. This method will call one of the "as" methods available in this class to do the formatting. For type "xyz", the method "asXyz" will be used. For example, if the format is "html", then asHtml() will be used. Format names are case insensitive.
public string format ( $value, $format )$value mixed
The value to be formatted. $format
string|array
The format of the value, e.g., "html", "text". To specify additional par