[PHP] Getting all letters not in a string?

2002-06-27 Thread Leif K-Brooks

What is the easiest way to get an array of all letters not in a string? I.e.
$array = notinstring(abc); //returns array of:
d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z



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




Re: [PHP] Getting all letters not in a string?

2002-06-27 Thread Jason Wong

On Thursday 27 June 2002 16:12, Leif K-Brooks wrote:
 What is the easiest way to get an array of all letters not in a string?
 I.e. $array = notinstring(abc); //returns array of:
 d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z

One way is to convert both entities into arrays then use array_diff().

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Life is a game of bridge -- and you've just been finessed.
*/


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