PO::trim_quotes()

最后更新于:2021-11-25 21:28:23

PO::trim_quotes( string$s)

参数

$s

(string) (Required)

响应

(string)

源文件

文件: gc-includes/pomo/po.php

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