Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

sorthighlights()

Parameters

ColumnTypeDefaultDescription
$a
$b

Location

include/search_functions.php lines 2196 to 2203

Definition

 
function sorthighlights($a$b)
    {
    
# fixes an odd problem for str_highlight related to the order of keywords
    
if (strlen($a) < strlen($b)) {
        return 
0;
        }
    return (
$a $b) ? -1;
    }

This article was last updated 10th July 2020 19:05 Europe/London time based on the source file dated 7th July 2020 15:22 Europe/London time.