public static function quote_spaced($value) { return strpos($value, ' ') === false ? $value : '"' . $value . '"'; }