Question from the PHP - Fundamentals test

Validate an integer in PHP

Hard

In the following code, what can we replace condition with so as to output "Integer is valid" ?

$int = 100;
if (condition) {
	echo("Integer is valid");
} else {
	echo("Integer is not valid");
}
Author: ThéoStatus: PublishedQuestion passed 449 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!