Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

sorthighlights()

Parameters

ColumnTypeDefaultDescription
$a
$b

Location

include/search_functions.php lines 2267 to 2274

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 3rd March 2021 20:05 Europe/London time based on the source file dated 2nd March 2021 10:05 Europe/London time.