Re: String function
| From: | Marco Tabini | Date: | Thu, 28 Nov 2002 13:56:24 +0000 |
| Subject: | Re: String function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126409@lists.php.net to get a copy of this message | ||
You can use strstr:
if (strstr ($str, '.'))
echo 'Full stop';
else
echo 'No full stop';
Marco
--
------------
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
On Thu, 2002-11-28 at 08:49, Shaun wrote:
> Hi,
>
> Please can someone tell me how i can tell if a string contains a full stop?
>
> thanks
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>