
Автор: Eric A Mann
Издательство: O’Reilly Media, Inc.
Год: 2023-03-03
Страниц: 330
Язык: английский
Формат: epub
Размер: 10.2 MB
If you're a PHP developer looking for proven solutions to common problems, this cookbook provides code recipes to help you resolve numerous scenarios. By leveraging modern versions of PHP through version 8.1, these self-contained recipes provide fully realized solutions that can help you solve similar problems in your day-to-day work. Whether you're new to development or merely new to PHP, these recipes will help you unpack the most powerful features of this programming language. Most PHP you’ll find in the wild, modern or legacy, is written to leverage a single thread of execution. This means the code is written to be neither concurrent or parallel. In fact, many developers avoid PHP entirely when they want to leverage concurrent or parallel concepts and turn to languages like jаvascript or GoLang for their applications. Modern PHP, though, fully supports both modes of execution - with or without additional libraries. To fully understand asynchronous PHP, you need to understand at least two specific concepts: promises and coroutines.