- print_r: documentation ( source)
- json_encode: documentation ( source)
<?php
$render = array(
'Dimensions' => array(
'Width' => '16 1/80 (410mm)',
'Height' => '8 3/80 (213mm)'
),
'Cut Out' => array(
'Width' => '6 7/80 (175mm)',
'Height' => '14 1/20 (368mm)'
),
'Depth' => array(
'3 9/160 (91mm)'
),
'Grille Material' => array(
'Perforated steel'
),
'Limited Lifetime Warranty'
);
print_r( json_encode( $render ) );