W3cubDocs

/WordPress

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

Sort by strlen, longest string first

Parameters

$a

(string) (Required)

$b

(string) (Required)

Return

(int)

Source

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

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

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_importer/cmpr_strlen