Is it necessary to return any value or does it improve the speed? Sometimes its needed to code functions that not necessary return a value, some just do a set of functions or echo something. Does returning a value improves ‘something’?, something like return true or return false?
Share
PHP functions do not need to return anything, and I doubt it would negatively affect the performance if you didn’t return anything. If anything, it would positively affect the performance.