Collections functions
General functions
Render functions
Theme permission functions
Resource functions

normalize_keyword()

Description

Normalize the text if function available

Parameters

ColumnTypeDefaultDescription
$keyword string

Return

string

Location

include/language_functions.php lines 329 to 342

Definition

 
function normalize_keyword($keyword)
    {
    global 
$normalize_keywords$keywords_remove_diacritics;
    if(
$normalize_keywords && function_exists('normalizer_normalize'))
        {
        
$keyword=normalizer_normalize($keyword);
        }
        
    if(
$keywords_remove_diacritics)
        {
        
$keyword=remove_accents($keyword);
        }
    return 
$keyword;
    }

This article was last updated 26th June 2022 02:35 Europe/London time based on the source file dated 1st June 2022 12:35 Europe/London time.