商品描述
This pocket reference has been updated with the new PHP 8 release. It is a condensed, code-rich scripting and syntax handbook for the PHP scripting language. You won't find any technical jargon, bloated samples, drawn-out history lessons or witty stories in this book. What you will find is a web scripting language reference that is concise, to the point, and highly accessible. The book is packed with useful information and is a must-have for any PHP programmer or web developer. In it, you will find a concise reference to the PHP 8 scripting language syntax. It includes short, simple, and focused code examples; a well-laid-out table of contents; and a comprehensive index allowing easy review.
PHP 8 Quick Scripting Reference presents the essentials of PHP in a well-organized format, including new features in PHP 8 such as the just in time (JIT) compiler, union types, nullsafe operator, null coalescing assignment operator, match expressions, named arguments, throw expressions, static return type, non-capturing catches, reclassified engine warnings and constructor property promotion.
What You Will Learn
- Discover what is new in PHP 8 and how to get started with it
- Work with variables, operators, strings, arrays, conditionals, loops, and other constructs
- Group and reuse code with functions, methods, and namespaces
- Use object-oriented features such as classes, inheritance, abstract classes, and interfaces
- Import files and retrieve user data
- Make use of type declarations and type conversions
- Test variables, create references, and use overloading methods
- Store user data with cookies and sessions
- Deal with errors through error handling, exception handling, and assertions
Who This Book Is For
Experienced PHP programmers and web developers who may be new to PHP.
商品描述(中文翻譯)
這本口袋參考書已經更新至 PHP 8 版本。它是一本精簡且充滿程式碼的 PHP 腳本語言語法手冊。您不會在這本書中找到任何技術術語、冗長的範例、拖沓的歷史課程或機智的故事。您會發現的是一本簡潔、直截了當且高度可讀的網頁腳本語言參考書。這本書充滿了有用的信息,是任何 PHP 程式設計師或網頁開發者的必備工具。在書中,您將找到 PHP 8 腳本語言語法的簡明參考。它包括簡短、簡單且專注的程式碼範例;一個良好編排的目錄;以及一個全面的索引,方便快速查閱。
《PHP 8 快速腳本參考》以良好組織的格式呈現 PHP 的基本要素,包括 PHP 8 中的新功能,如即時編譯器(just in time, JIT)、聯合類型、空安全運算子(nullsafe operator)、空合併賦值運算子(null coalescing assignment operator)、匹配表達式(match expressions)、命名參數、拋出表達式、靜態返回類型、非捕獲捕獲(non-capturing catches)、重新分類的引擎警告和建構子屬性提升(constructor property promotion)。
您將學到的內容:
- 探索 PHP 8 的新功能以及如何開始使用它
- 使用變數、運算子、字串、陣列、條件語句、迴圈和其他結構
- 使用函數、方法和命名空間來分組和重用程式碼
- 使用物件導向特性,如類別、繼承、抽象類別和介面
- 匯入檔案並檢索用戶數據
- 使用類型聲明和類型轉換
- 測試變數、創建引用並使用重載方法
- 使用 cookies 和會話存儲用戶數據
- 通過錯誤處理、例外處理和斷言來處理錯誤
本書適合對象:
有經驗的 PHP 程式設計師和網頁開發者,可能對 PHP 還不熟悉。
作者簡介
Mikael Olsson is a professional web entrepreneur, programmer, and author. He works for an R&D company in Finland where he specializes in software development. In his spare time he writes books and creates websites that summarize various fields of interest. The books he writes are focused on teaching their subject in the most efficient way possible, by explaining only what is relevant and practical without any unnecessary repetition or theory.
作者簡介(中文翻譯)
Mikael Olsson 是一位專業的網路企業家、程式設計師和作家。他在芬蘭的一家研發公司工作,專注於軟體開發。在空閒時間,他撰寫書籍並創建網站,總結各種感興趣的領域。他所寫的書籍專注於以最有效的方式教授主題,僅解釋相關和實用的內容,避免不必要的重複或理論。