wordpress / latest / classes / wp_importer / cmpr_strlen.html

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

Sort by strlen, longest string first

Parameters

$a string Required
$b string Required

Return

int

Source

File: wp-admin/includes/class-wp-importer.php. View all references

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

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