Pheasant\Options::toString PHP Method

toString() public method

Serializes the options to a string.
public toString ( $default = true )
    public function toString($default = true)
    {
        $options = array();
        $binder = new Database\Binder();
        foreach ($this as $key => $value) {
            $options[] = $value === $default ? $key : sprintf("%s=%s", $key, urlencode($value));
        }
        return implode(' ', $options);
    }