<?php
// Attempt to reproduce "element" issue
$elements = array( "eng%C3%A5%C2%BF%C2", "Products" );// url, exploded by "/"
$saList = array( "eng", "fre" );
$URIMatchElement = 1;// URIMatchElement setting
$elements = array_slice( $elements, 0, $URIMatchElement );
$name = implode( '_', $elements );
$name = preg_replace( array( '/[^a-zA-Z0-9]+/', '/_+/', '/^_/', '/_$/' ),
array( '_', '_', '', '' ),
$name );
echo $name;
echo in_array( $name, $saList );// if issue is true, then this should be true
preferences:
38.25 ms | 402 KiB | 5 Q