- print_r: documentation ( source)
- json_encode: documentation ( source)
<?php
$render = array(
'Dimensions' => array(
'Width' => '8 3/80 (213mm)',
'Height' => '12 1/40 (311mm)'
),
'Cut Out' => array(
'Width' => '6 15/160 (176mm)',
'Height' => '10 3/40 (273mm)'
),
'Depth' => array(
'3 1/20 89mm)'
),
'Grille Material' => array(
'Perforated steel'
),
'Limited Lifetime Warranty'
);
print_r( json_encode( $render ) );