phparr
v0.2.0
Published
Output PHP array from JavaScript object.
Downloads
1,575
Readme
phparr
Output PHP array from JavaScript object.
Installation
npm install phparr
Example
var phparr = require('phparr');
var result = phparr({
foo: 'FOO',
bar: 'BAR',
baz: [
'QUX',
1,
true,
null
]
});
console.log(result);
Output:
[
"foo" => "FOO",
"bar" => "BAR",
"baz" => [
"QUX",
1,
true,
null
]
]
License
MIT