how to check if key is present in json in php
snippet in php

how to check if key is present in json in php

user6958

if( isset( $mydata['user_id'] ) ){
   // do something
}