PHP - Output and String Handling
You want to output the string "Result: 10" and also use the output function in an expression to check success. Which PHP statement correctly does this?
print returns 1 after output, so it can be used in expressions; echo does not return a value.print("Result: " . 10); concatenates string and number correctly and returns 1.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions