//Beware, untested!
preg_match('|.*([0-9]{10}).*|',$_SERVER['HTTP_REFERER'],$matches);
$number = $matches[1];

Damon wrote:

Hi,

I have a realatively easy problem that I need help on. I want to take a 10-digit number out of a referring url and put it in a variable.

Eg. www.jimmy.com/mypage/xyz0123456789xyz/index.php

I just need the 10-digit number from this string.

Thanks!
Damon




-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to