Is returning out of a switch statement considered a better practice than using break? [closed]

A break will allow you continue processing in the function. Just returning out of the switch is fine if that’s all you want to do in the function.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)