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.1.1
public static function trim_quotes( $s ) { if ( '"' === substr( $s, 0, 1 ) ) { $s = substr( $s, 1 ); } if ( '"' === substr( $s, -1, 1 ) ) { $s = substr( $s, 0, -1 ); } return $s; }