MCPcopy Create free account
hub / github.com/WebReflection/JSONH / pack

Method pack

php5/JSONH.class.php:27–35  ·  view source on GitHub ↗
(
        /*array /*use type hint if you can removing initial comment*/
        $list
    )

Source from the content-addressed store, hash-verified

25class JSONH {
26
27 public static function pack(
28 /*array /*use type hint if you can removing initial comment*/
29 $list
30 ) {
31 $length = count($list);
32 return $length ? (
33 is_array($list[0]) ? self::_pack_array($list, $length) : self::_pack_object($list, $length)
34 ) : array(0);
35 }
36
37 public static function parse(
38 /*string /*use type hint if you can removing initial comment*/

Callers 1

stringifyMethod · 0.95

Calls 2

_pack_arrayMethod · 0.95
_pack_objectMethod · 0.95

Tested by

no test coverage detected