Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

sorthighlights()

Parameters

ColumnTypeDefaultDescription
$a
$b

Location

include/search_functions.php lines 2541 to 2548

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 19th March 2024 09:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.