isset() with multiple parameters

// long way
if(isset($a) && isset($b)){

}

// short way
if (isset($a, $b)) {
echo "Both variables are set.";
}

No comments:

Post a Comment

Other post

1) The create() Method The  create()  method is a powerful and convenient way to store data in your Laravel application. It is typically use...