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
Contents
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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub