PO::trim_quotes()
Method of the class: PO{}
No Hooks.
Return
String
.
Usage
$result = PO::trim_quotes( $s );
- $s(string) (required)
- -
PO::trim_quotes() PO::trim quotes code WP 6.7.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; }