- print_r: documentation ( source)
- json_encode: documentation ( source)
<?php
$render = array(
'Dimensions' => array(
'Width' => '100 (254mm)',
'Height' => '160 (406mm)'
),
'Cut Out' => array(
'Width' => '8 1/20 (216mm)',
'Height' => '14 1/20 (368mm)'
),
'Depth' => array(
'3 7/8Ó (98mm)'
),
'Grille Material' => array(
'Perforated steel'
),
'Limited Five (5) Year Warranty'
);
print_r( json_encode( $render ) );