SassList::toString PHP Метод

toString() публичный Метод

Returns a string representation of the value.
public toString ( ) : string
Результат string string representation of the value.
    public function toString()
    {
        $aliases = array('comma' => ',', 'space' => '');
        $this->separator = trim($this->separator);
        if (isset($aliases[$this->separator])) {
            $this->separator = $aliases[$this->separator];
        }
        return implode($this->separator . ' ', $this->getValue());
    }

Usage Example

Пример #1
0
 public static function index($list, $value)
 {
     if (!$list instanceof SassList) {
         $list = new SassList($list->toString());
     }
     return $list->index($value);
 }
All Usage Examples Of SassList::toString