Question: Copy the following questions to Notepad. Then insert your solution under each problem. 1. Re-write the ternary operator to if/else: echo ( $widgets >=10 )
Copy the following questions to Notepad. Then insert your solution under each problem. 1. Re-write the ternary operator to if/else: echo ( \$widgets >=10 ) ? \$plenty : \$few; 2. Re-write the if/else to a ternary operator: if ($ score =78) echo "You pass the course. br/>"; else echo "You have to retake the course.sbr />"; 3. Re-write the ternary operator to if/else: echo " $x is an ". ($x%2=0 ? "even" : "odd") ." number. $br/>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
