Heh, I got ahead of myself anyway. I should have just hard-coded client.
preg_match('!/client(\d+)/!', $_SERVER['PHP_SELF'], $matches);
$xxx = $matches[1];
Ryan Schefke wrote:
Justin,
Very nice preg_match statement. I realized I need to make a minor tweek to
what I needed. I need to get the number
Justin,
Very nice preg_match statement. I realized I need to make a minor tweek to
what I needed. I need to get the number after the "client" string in
/tgwedding/users/client1/sites/testgrabid.php
...so, in the string above I need to pull out the number "1".
Any help?
-Original Message-
2 matches
Mail list logo