Using strfind
#1

Is there a way that I can detect if there is not a specific character in a string?

I've only found tutorials that explains how to find a character in a string, such as:

PHP код:
if(strfind(inputtext" ") != -1// Finds a blank space 
But what I need is to find if the player did not insert the character. For example a dot "." How can I check if there are no dots in the string?
Reply


Messages In This Thread
Using strfind - by Cepillado - 09.01.2016, 00:13
Re: Using strfind - by Jefff - 09.01.2016, 00:49
Respuesta: Using strfind - by Cepillado - 09.01.2016, 01:05
Re: Using strfind - by RoboN1X - 09.01.2016, 01:10
Re: Using strfind - by SickAttack - 09.01.2016, 01:28
Re: Using strfind - by RoboN1X - 09.01.2016, 01:45
Respuesta: Using strfind - by Cepillado - 09.01.2016, 01:47

Forum Jump:


Users browsing this thread: 1 Guest(s)