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

void

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 30th November 2020 19:35 Europe/London time based on the source file dated 7th July 2020 14:31 Europe/London time.