Liking cljdoc? Tell your friends :D
Clojure only.

php_clj.core


clj->phpclj

(clj->php clj)

Converts Clojure data structures into serialized PHP.

Example: (clj->php [1 2 3])

Converts Clojure data structures into serialized PHP.

Example: (clj->php [1 2 3])
sourceraw docstring

php->cljclj

(php->clj php)

Converts serialized PHP into equivalent Clojure data structures.

Note that one-dimensional PHP arrays (those with consecutive indices starting at 0 such as array(1, 2, 3)) will be converted to vectors while all others will be converted to ordered maps therefore preserving insertion order.

Example: (php->clj "a:2:{i:0;i:1;i:1;i:2;}")

Converts serialized PHP into equivalent Clojure data structures.

Note that one-dimensional PHP arrays (those with consecutive indices starting
at 0 such as array(1, 2, 3)) will be converted to vectors while all others
will be converted to ordered maps therefore preserving insertion order.

Example: (php->clj "a:2:{i:0;i:1;i:1;i:2;}")
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close