Bug #23113 » 15020_testInt_v1.diff
t3lib/class.t3lib_div.php (working copy) | ||
---|---|---|
* @param mixed Any input variable to test.
|
||
* @return boolean Returns true if string is an integer
|
||
*/
|
||
public static function testInt($var) {
|
||
return !strcmp($var,intval($var));
|
||
public static function testInt($var) {
|
||
return is_int($var);
|
||
}
|
||
/**
|