Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e6a207bcd4
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.581 kb
<?php
// vim: set ts=4 sts=4 sw=4 si noet:
function array_key_value($key, $array, $emptyValue = 0) {
return array_key_exists($key, $array) ? $array[$key] : $emptyValue;
}
function _json_encode($array) {
$buffer = json_encode($array);
$buffer = str_replace('\r\n', '', $buffer);
$buffer = str_replace('\n', '', $buffer);
$buffer = str_replace('\r', '', $buffer);
$buffer = str_replace('\t', '', $buffer);
$buffer = str_replace('\"', '"', $buffer);
$buffer = str_replace('"<script>', '', $buffer);
$buffer = str_replace('<\/script>"', '', $buffer);
return $buffer;
}
?>
Jump to Line
Something went wrong with that request. Please try again.