Skip to content

How to check if key is present in json in PHP?

if( isset( $mydata['user_id'] ) ){
   // do something
}
See also  How to get data from combobox in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.