in your functions/methods? Could you share your opinion why it’s good or bad
You can't return multiple values in PHP, the only work around is to return an array which might be okay as long as it's just a couple of values. The downside is of course, you can't specify the types that the return array would contain, you need to use static analysis like psalm or phpstan for additional type validation.
Обсуждают сегодня