Cheers! "Richard Davey" <rich@xxxxxxxxxxxxx> kirjoitti viestissä:FC78C993-A6AB-4914-80B0-6730F1ADB08D@xxxxxxxxxxxxxxxx > > On 6 Feb 2006, at 12:18, William Stokes wrote: > >> How can I test whether a string is 1 or 2 digits long? > > Cast it to an int (or float if required) and strlen() it. > > Cheers, > > Rich > -- > http://www.corephp.co.uk > Zend Certified Engineer > PHP Development Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php