-----Original Message----- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] I've got a situation where I need to pull a string from a variable but I can't seem to get it figured out.
I.e. value of $a = /realtor/Remax/Ed/files/ I need to get the string between the second and third / (slash) What I need: Remax --------------------------------------------------------- Just explode the string with / as the delimiter, and then grab the [2] element, for instance: $dirnames = explode('/', $a); echo $dirnames[2]; Cheers! Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php