I have this string with special characters only
$chars="¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶¸¹º»¼½¾ÀÂÃÄÅÆÈÊËÌÎÏÐÒÔÕÖרÙÛÜÝÞßàâãäåæçèêëìî";
I have this another string with normal text with some of the special characters listed on the '$chars'occurrences.
$string=" this is a normal text  with some special ° characters I Þ want to remove, not replace ê £";
How do I find the ocurrences and remove the chars listed on $chars and remove them from $string?
I was thinking using str_replace()
with arrays but it is too much, I would need to make an array from $chars
Here there is the white list
abcdefghijklmnñopqrstuvwxyzñáéíóúABCDEFGHIJKLMNÑOPQRSTUVWXYZÁÉÍÓÚ0123456789[]=+-¿?¡!<>$%^&*'"()/#@*,.:;_|