Sorts by strlen, longest string first.
Parameters
$a
stringrequired$b
stringrequired
Source
public function cmpr_strlen( $a, $b ) {
return strlen( $b ) - strlen( $a );
}
Sorts by strlen, longest string first.
$a
stringrequired$b
stringrequiredpublic function cmpr_strlen( $a, $b ) {
return strlen( $b ) - strlen( $a );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.