Re: parsing question ('010.000.080.001' == `10.0.80.1`) how to be 'true'?

From: Date: Thu, 08 Apr 2004 22:01:42 +0000
Subject: Re: parsing question ('010.000.080.001' == `10.0.80.1`) how to be 'true'?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182921@lists.php.net to get a copy of this message
* Thus wrote Galkov Vladimir (galkov@vgt.ru): > Two tables have diferent standarts to hold IP adresses: > > first: > 045.012.001.002 > 003.000.123.231 > 123.230.101.080 > > second: > 45.12.1.2 > 3.0.123.231 > 123.230.101.80 > > I have to compare the data and stack there .. my fantasy can't help me write > regular expresion to parse first format into second or second into first. http://php.net/ip2long may help Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#182921) next »