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 check if a string is composed only of alphanumeric in Python?

Leave a Reply

Your email address will not be published.

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