Re: function for finding one character in a string?
| From: | Richard Lynch | Date: | Thu, 18 Jul 2002 23:35:45 +0000 |
| Subject: | Re: function for finding one character in a string? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108381@lists.php.net to get a copy of this message | ||
>I have been looking around in the PHP function listing for a function that
>can find or match one character from a string. I thought it would be
>something like post_str() or something but never found anything close to
>that. I get the idea of post and str from the SQL command. I did check the
>ereg() but it is so confusing, no clear instruction on it.
>
>--clip--
> $str = "";
> $str = "X";
> $str = "XY"
> $str = "Y";
> $str = "YX";
>--clip--
>
>Those same variables from above, I only need to know if hte "X" exist in the
>string, nothing else.
http://php.net/strstr
--
Like Music? http://l-i-e.com/artists.htm