what does this mean in plain english?

From: Date: Fri, 17 May 2002 17:23:45 +0000
Subject: what does this mean in plain english?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-98135@lists.php.net to get a copy of this message
Hi. I'm fairly new to PHP and programming in general. I'm learning mostly by deconstructing what others have written...but even though I have plenty of PHP books and have searched the Internet high and low, I'm stumped by the exact meaning in the following function of what the question mark's ("?") and colon's (":"), mean and do? BTW, I'm not looking for an explanation of the function; just what the question mark's and colon's mean in plain english, so I'll know how to use them in other places. Thanks! Jeff ------------------------------------------------------ function GetSQLValueString($theValue, $theType) { $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue; switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; } return $theValue; } ------------------------------------------------------

« previous php.general (#98135) next »