(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])
(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;}")
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close