- var_dump: documentation ( source)
- json_encode: documentation ( source)
<?php
$array = array(
array("type" => "shirt", "artnr" => "101400", "kleur" => "5000", "maten" => array(12 => "152", 2 => "164")),
array("type" => "short", "artnr" => "1930", "kleur" => "1000", "maten" => array(12 => "152", 2 => "164"),)
);
$output = json_encode($array);
var_dump($output);