watson100 wrote:So how would i define it
Just like you would any other variable.
watson100 wrote:i know i would use (isset()) but how would i combine it with this line ?
[man]isset/man doesn't define anything.
However, if you only want to use the value from that array if it exists, then you could use the ternary operation in conjunction with [man]isset/man like so:
$db_password = (isset($login_data['pass']) ? $login_data['pass'] : NULL);