lukasruzicka / decal
Turns PHP array to its PHP code interpretation.
1.0
2019-10-23 22:59 UTC
Requires
- phpunit/phpunit: >=4.7
This package is auto-updated.
Last update: 2025-06-24 11:53:06 UTC
README
A simple script that allows you to turn the existing PHP array to its PHP code interpretation, which might be useful when creating mock data and so on.
# CODE $array = ['a' => ['b' => 1, 'c' => ['d']], 'b' => [0, '0', null]]; Decal::print($array);
# OUTPUT
$decal = [
'a' => [
'b' => 1,
'c' => [
'd'
]
],
'b' => [
0,
'0',
null
]
];