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
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to