switching to is_???

This commit is contained in:
Miles Lott 2002-03-08 04:02:44 +00:00
parent fe61c9090d
commit 611c40af04

View File

@ -176,7 +176,7 @@
// Returns true if string contains only numbers // Returns true if string contains only numbers
function is_allnumbers ($text) function is_allnumbers ($text)
{ {
if( (gettype($text)) == 'integer') if(is_int($text))
{ {
return true; return true;
} }
@ -345,7 +345,7 @@
return false; return false;
} }
if( (gettype($Chars)) != 'array') if(!is_array($Chars))
{ {
$this->ERROR = "custom_strip: [$Chars] is not an array"; $this->ERROR = "custom_strip: [$Chars] is not an array";
return false; return false;
@ -372,7 +372,7 @@
{ {
if($this->CLEAR) { $this->clear_error(); } if($this->CLEAR) { $this->clear_error(); }
if( (gettype($MyArray)) != 'array') if(!is_array($MyArray))
{ {
return; return;
} }
@ -387,7 +387,7 @@
echo "><TR><TD VALIGN=TOP COLSPAN=4><B>$Name Contents:</B></TD\n"; echo "><TR><TD VALIGN=TOP COLSPAN=4><B>$Name Contents:</B></TD\n";
echo "><TD COLSPAN=2><B>KEY</B></TD><TD COLSPAN=2><B>VAL</B></TD></TR\n>"; echo "><TD COLSPAN=2><B>KEY</B></TD><TD COLSPAN=2><B>VAL</B></TD></TR\n>";
} }
if( (gettype($val)) == 'array') if(is_array($val))
{ {
$NewName = "$key [$Name $count]"; $NewName = "$key [$Name $count]";
$NewArray = $MyArray[$key]; $NewArray = $MyArray[$key];
@ -645,7 +645,7 @@
$chunks = explode(".",$hostname); $chunks = explode(".",$hostname);
if( (gettype($chunks)) != 'array') if(!is_array($chunks))
{ {
$this->ERROR = "is_hostname: Invalid hostname, no dot seperator [$hostname]"; $this->ERROR = "is_hostname: Invalid hostname, no dot seperator [$hostname]";
return false; return false;