- var_dump: documentation ( source)
- json_decode: documentation ( source)
- json_encode: documentation ( source)
<?php
$value = json_encode( array( 'l' => 'foo' ) );
if (
null !== ( $decoded = json_decode( $value, true ) ) &&
isset( $decoded['l'] )
) {
var_dump( $decoded['l'] );
}