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
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.
Step by Step Solution
3.46 Rating (162 Votes )
There are 3 Steps involved in it
To solve this problem Ill guide you through creating a PHP script that checks if a variable contains ... View full answer
Get step-by-step solutions from verified subject matter experts
