public function toString()
    {
        $options = $this->toArray();

        //Transforms values as strings
        array_walk($options, function (&$value, $key) {
            if (is_array($value)) {
                $value = implode(' ', $value);
            } elseif (is_bool($value)) {
                $value = $value ? 'true' : 'false';
            } elseif (is_null($value)) {
                $value = 'null';
            }

            $value = $key . '="' . $value . '"';
        });

        return implode(' ', $options);
    }
public function toString()
    {
        $options = $this->toArray();

        //Transforms values as strings
        array_walk($options, function (&$value, $key) {
            if (is_array($value)) {
                $value = implode(' ', $value);
            } elseif (is_bool($value)) {
                $value = $value ? 'true' : 'false';
            } elseif (is_null($value)) {
                $value = 'null';
            }

            $value = $key . '="' . $value . '"';
        });

        return implode(' ', $options);
    }
public function toString ( ) { $ options = $ this -> toArray ( ) ; //Transforms values as strings array_walk ( $ options , function ( & $ value , $ key ) { if ( is_array ( $ value ) ) { $ value = implode ( ' ' , $ value ) ; } elseif ( is_bool ( $ value ) ) { $ value = $ value ? 'true' : 'false' ; } elseif ( is_null ( $ value ) ) { $ value = 'null' ; } $ value = $ key . '="' . $ value . '"' ; } ) ; return implode ( ' ' , $ options ) ; }
Returns options as string
@return string
@uses toArray()
Returns options as string