how to check key exist in json decode php code example Example: how to check if key is present in json in php if( isset( $mydata['user_id'] ) ){ // do something }