Re: String search
[Bob Irwin <bobirwin@pnc.com.au>]
> G'day,
>
> This is a probably an easy one.
>
> How would one identify predefined characters in a string?
>
> For example,
>
> I have the string, 'bob@pnc. com.au'
>
> If I had the space on my 'illegal characters list', how would I go
> about having the script identify it?
This is a question for php-general, not php-dev. But anyway, take a
look at the strspn and strcspn functions.
- Stig
--
Stig Sæther Bakken <ssb@alltheweb.com>
Fast Search & Transfer ASA, Trondheim, Norway
Thread (2 messages)