WC_Countries::trim_formatted_address_line()privateWC 1.0

Trim white space and commas off a line.

Method of the class: WC_Countries{}

No Hooks.

Return

String.

Usage

// private - for code of main (parent) class only
$result = $this->trim_formatted_address_line( $line );
$line(string) (required)
Line.

WC_Countries::trim_formatted_address_line() code WC 8.6.1

private function trim_formatted_address_line( $line ) {
	return trim( $line, ', ' );
}