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

normalize_keyword()

Description

Normalize the text if function available

Parameters

ColumnTypeDefaultDescription
$keyword string

Return

string

Location

include/language_functions.php lines 330 to 343

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 7th March 2021 08:05 Europe/London time based on the source file dated 13th January 2021 13:50 Europe/London time.