public static function option($value, $text, array $attributes = array())
    {
        if (!is_null($value)) {
            $attributes['value'] = $value;
        }

        $node = new Node\Option($text);
        return $node->render($attributes);
    }
public static function option($value, $text, array $attributes = array())
    {
        if (!is_null($value)) {
            $attributes['value'] = $value;
        }

        $node = new Node\Option($text);
        return $node->render($attributes);
    }
public static function option ( $ value , $ text , array $ attributes = array ( ) ) { if ( ! is_null ( $ value ) ) { $ attributes [ 'value' ] = $ value ; } $ node = new Node \ Option ( $ text ) ; return $ node -> render ( $ attributes ) ; }
Creates standalone "option" element

@param string $value
@param string $text
@param array $attributes Extra attributes
@return string
Creates standalone option element