Deprecated: Function split() is deprecated
-
Hi, Why I am getting above error for below code? It was working fine when I use the PHP class only but started giving this error when I am calling the class from another PHP page. How to fix it please?
function IPv4Tonumber($ip_to_convert)
{
if ($ip_to_convert == "")
{
return 0;
}
else
{
$ips = split("\.", "$ip_to_convert");
return ($ips[3] + $ips[2] * 256 + $ips[1] * 256 * 256 + $ips[0] * 256 * 256 * 256);
}
}Technology News @ www.JassimRahma.com
-
Hi, Why I am getting above error for below code? It was working fine when I use the PHP class only but started giving this error when I am calling the class from another PHP page. How to fix it please?
function IPv4Tonumber($ip_to_convert)
{
if ($ip_to_convert == "")
{
return 0;
}
else
{
$ips = split("\.", "$ip_to_convert");
return ($ips[3] + $ips[2] * 256 + $ips[1] * 256 * 256 + $ips[0] * 256 * 256 * 256);
}
}Technology News @ www.JassimRahma.com