HouseMD Posted March 21, 2007 Posted March 21, 2007 How can i make the $4 detect if it is a number eg. if $4 isn't 1,2,3,4 etc Always Remember, Everyone Lies and Trust No-one
lil Toady Posted March 21, 2007 Posted March 21, 2007 what do you mean? $1 $2 $3 $4 etc are the numbers of parameters in a function Do not PM me, im not going to read it anyway.
HouseMD Posted March 21, 2007 Author Posted March 21, 2007 $4 != 1,2,3,4, but that doesn't work Always Remember, Everyone Lies and Trust No-one
lil Toady Posted March 21, 2007 Posted March 21, 2007 is a number: if ($4 isnum) {} is NOT a number: if ($4 !isnum) {} Do not PM me, im not going to read it anyway.
HouseMD Posted March 21, 2007 Author Posted March 21, 2007 Thanks...Didn;t know lol... Always Remember, Everyone Lies and Trust No-one
Recommended Posts