re: Daily Challenge #76 - Bingo! (or not...) VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Why adding public before the function keyword?
 

Force of habit.
I never code in a procedural way, I always have a class, so I declare method visibility ...

It's for sure a Fatal Error in a procedural code.

I'll edit my snippet in consequence

Okay I though it was a new language feature haha.

I didn't found any use case of this function in PHP before but now I do thanks to your take at the challenge. Well done btw!

code of conduct - report abuse