- json_decode: documentation ( source)
- print_r: documentation ( source)
<?php
$db_string = "{\"flugel en relinde\":\"1\",\"Bottom level 1\":\"4\",\"Underground level 2\":\"8\",\"Middle level 2\":\"6\"}";
function test(array $data = array()) {
print_r($data);
}
test(json_decode($db_string, true));