Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

WARNING: Function 'split' is deprecated, please use 'explode' or 'pre…

…g_split' instead in file ./Net_IPv4/tests/MyIPv4.php line 4

WARNING: Function 'split' is deprecated, please use 'explode' or 'preg_split' instead in file ./Net_IPv4/tests/MyIPv4.php line 19


git-svn-id: http://svn.php.net/repository/pear/packages/Net_IPv4/trunk@302961 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 27c56bbec0cd982dc59adae0712a776c63f3e6d8 1 parent dc27e2b
@CloCkWeRX CloCkWeRX authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/MyIPv4.php
View
4 tests/MyIPv4.php
@@ -1,7 +1,7 @@
<?php
class MyIPv4 {
public function validateIP($ip) {
- $quad = split('\.', $ip);
+ $quad = explode('.', $ip);
if (count($quad) != 4) {
return false;
}
@@ -16,7 +16,7 @@ public function validateIP($ip) {
}
public function atoh($ip) {
- $quad = split('\.', $ip);
+ $quad = explode('.', $ip);
$new = array();
foreach($quad as $k => $v) {
$n = str_pad(dechex($v), 2, "0", STR_PAD_LEFT);
Please sign in to comment.
Something went wrong with that request. Please try again.