Collections functions
General functions
Render functions
Theme permission functions
User 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 2nd December 2023 08:05 Europe/London time based on the source file dated 21st November 2023 21:50 Europe/London time.