+ 5
Calling getP() results in echoing 3%2 first, which prints 1. I'm not sure about this next part. I assume it's because getP() doesn't return any value, so multiplying by 5 results in 0 being printed. And that's how you get 10.
30th Apr 2019, 4:11 AM
silentlearner
silentlearner - avatar