Re: [PHP] Pulling out string from a string

2004-05-04 Thread Curt Zirzow
* Thus wrote Ryan Schefke ([EMAIL PROTECTED]): > Can anyone help me with the code to pull out "clientxxx" from the below > string: > > /tgwedding/users/client1/sites/testgrabid.php $parts = explode('/', $path); echo $parts[2]; // client1 Curt -- "I used to think I was indecisive, but now I'm n

[PHP] Pulling out string from a string

2004-05-04 Thread Ryan Schefke
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 giv