WP_Importer::cmpr_strlen() WordPress Method

The WP_Importer::cmpr_strlen() method is used to compare two strings. It is a static method and can be called without creating an instance of the class.

WP_Importer::cmpr_strlen( string $a, string $b ) #

Sort by strlen, longest string first


Parameters

$a

(string)(Required)

$b

(string)(Required)


Top ↑

Return

(int)


Top ↑

Source

File: wp-admin/includes/class-wp-importer.php

	public function cmpr_strlen( $a, $b ) {
		return strlen( $b ) - strlen( $a );
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.