- ini_set: documentation ( source)
- error_reporting: documentation ( source)
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
$data = array(
'request_id' => '',
'entity_id' => '',
'data' => '8b45d3a22ccc64d19e6147878101d6dd',
'code' => '200'
);
if ( is_array( $data ) && isset( $data[ 'data' ][ 'code' ] ) ) {
die('failed');
} else {
die('ok');
}