Code Removal: PHP has had JSON support directly baked into the language since 5.2.0 - there is no need to rely on an external library from 2006 for json support.
This commit is contained in:
@ -45,19 +45,6 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
function jsonEncode(&$array) {
|
||||
if ($array) {
|
||||
$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
|
||||
return $json->encode($array);
|
||||
} else
|
||||
return 'ar';
|
||||
}
|
||||
|
||||
function jsonDecode($encoded) {
|
||||
$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
|
||||
return $json->decode($encoded);
|
||||
}
|
||||
|
||||
function validIP($ip) {
|
||||
if ($ip == long2ip(ip2long($ip)))
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user