Write a script that uses a conditional operator to determine whether a variable contains a number and
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a script that uses a conditional operator to determine whether a variable contains a number and whether the number is even. You need to use the is_numeric() function and the conditional operator. For floating-point numbers, you need to use the round() function to convert the value to the nearest whole number. Save the document as IsEven.php.
Related Book For
Posted Date: