View Single Post
Old 01-19-2003, 01:58 AM  
psyko514
See sig. Join Epic Cash.
 
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
Chodadog... the isset() function checks to see if the variable has been set (if it has a value). if so, it gives a result of TRUE.

the code i posted checks to see if W has been given a value, and if not, it gives W a value of 99999 or whatever else you want.

i posted it in one line, but it could be broken into several lines

PHP Code:
<?php
if (!isset($w)) {
   
$w 999999

?>
the empty() function does more or less the same thing... except that if W = 0, isset() will return TRUE but empty() will return FALSE
psyko514 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote