public function replaceText(string $str) : string
    {
    	foreach (Unicode::$char as $key => $value) {
    		if ($key === $str) {
    			$result = ((count($value) > 1) ? Unicode::$char[$key][random_int(0, count($value)-1)] : Unicode::$char[$key][0]);
    		}
    	}
    	
    	return $result ?? $str;
    }
public function replaceText(string $str) : string
    {
    	foreach (Unicode::$char as $key => $value) {
    		if ($key === $str) {
    			$result = ((count($value) > 1) ? Unicode::$char[$key][random_int(0, count($value)-1)] : Unicode::$char[$key][0]);
    		}
    	}
    	
    	return $result ?? $str;
    }
public function replaceText ( string $ str ) : string { foreach ( Unicode :: $ char as $ key => $ value ) { if ( $ key === $ str ) { $ result = ( ( count ( $ value ) > 1 ) ? Unicode :: $ char [ $ key ] [ random_int ( 0 , count ( $ value ) - 1 ) ] : Unicode :: $ char [ $ key ] [ 0 ] ) ; } } return $ result ?? $ str ; }
Replace text with unicode character

@param string $str
@return string
Replace text with unicode character