Ryan Schefke wrote:
Can anyone help me with the code to pull out "clientxxx" from the below string:
/tgwedding/users/client1/sites/testgrabid.php
I use $PHP_SELF to get the directory structure of the page and store that string as a variable. Then, I want to pull out the string "clientxx", where "xx" can be any given number.
Thanks,
Ryan
preg_match('!/([^/]+\d+)/!', $_SERVER['PHP_SELF'], $matches); $clientxxx = $matches[1];
-- paperCrane <Justin Patrin>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

