Re: checking to see if a character exist in a string
On Tue, 2006-04-04 at 01:52 +0000, Realtime wrote:[color=blue]
>
> Lets say i got a string like this
>
> $StrInfo="1,2,3 ";
>
> I want to be able to check if the string exists without using strpos or
> arrays. If it exists it will return true or sucess :)
>
> Thanks a million :)
>
>[/color]
Re: checking to see if a character exist in a string
Message-ID: <de9f55a6a8338c 825800219cf80@n ews.cogeco.ca> from Realtime
contained the following:
[color=blue]
>
>
>Lets say i got a string like this
>
>$StrInfo="1,2, 3";
>
>I want to be able to check if the string exists without using strpos or
>arrays. If it exists it will return true or sucess :)
>[/color]
if(isset($StrIn fo) &&$StrInfo=="1, 2,3"){
//do stuff
}
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Proudly running Debian Linux with 2.6.15-1-686 kernel, KDE3.5.0, and PHP
5.1.2-1+b1 generating this signature.
Uptime: 09:19:38 up 11:56, 2 users, load average: 0.16, 0.33, 0.29
Comment