Short hand question
Posted: Wed Mar 26, 2003 10:48 am
I found the following code inside some classes I've been looking at and I'm not sure exactly what it means.
My guess is this is some kind of shorthand for an if statement. If type is true connect using persistent connections else connect without persistent connections. Is that how it works?
Thanks for everything.
Code: Select all
($type == true)
? mysql_pconnect($host, $user, $pass)
: mysql_connect($host, $user, $pass)Thanks for everything.