PO::trim_quotes
Метод класса: PO{}
Хуков нет.
Возвращает
Строку.
Использование
$result = PO::trim_quotes( $s );
- $s(строка) (обязательный)
- .
Код PO::trim_quotes() PO::trim quotes WP 6.9.1
public static function trim_quotes( $s ) {
if ( str_starts_with( $s, '"' ) ) {
$s = substr( $s, 1 );
}
if ( str_ends_with( $s, '"' ) ) {
$s = substr( $s, 0, -1 );
}
return $s;
}