16.01.2017, 19:04
seria isso ?
PHP код:
new ANT_CARACTER[]= { "-", "*", "_", "," };
CaracterEspecial(text[])
{
for(new a; a < strlen(text); ++a)
{
for(new b; b < sizeof(ANT_CARACTER); b++)
{
if(text[a] == ANT_CARACTER[b]) return print("CARACTER ENCONTRADO"), printf("CARACTER: %c", text[a]);
}
}
return 0;
}