PO::trim_quotes()public staticWP 1.0

Method of the class: PO{}

No Hooks.

Return

String.

Usage

$result = PO::trim_quotes( $s );
$s(string) (required)
-

PO::trim_quotes() code WP 6.5.2

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;
}