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