https://www.icyphoenix.com/viewtopic.php?f=35&t=6611&p=45361#p45361
-----------------------------------
Mighty Gorgon
Mon 26 Oct, 2009 15:48

Re: Analisys For Luca
-----------------------------------
You need to use the [b]explode[/b] function to be able to match only the first triplet.

[codeblock]$ip_parts = explode('.', $ip_address);[/codeblock]

In this way you can match any part of the IP with a condition like this:
[codeblock]if ($ip_parts[0] == '151')
{
	$provider = 'Libero';
}[/codeblock]


