- PHP 7 Programming Blueprints
- Jose Palala Martin Helmich
- 100字
- 2021-07-08 11:14:10
Summary
As you can see, we have a lot of use cases for the null coalesce.
We learned how to make a simple user profile system, and how to use PHP 7's null coalesce feature when fetching data from the database, which returns null if there are no records. We also learned that the null coalesce operator is similar to a ternary operator, except this returns null by default if there is no data.
In the next chapter, we'll have more use cases for other PHP 7 features, especially when creating the database abstraction layer for use in our projects.
推薦閱讀
- C++ Primer習題集(第5版)
- Java高手真經(高級編程卷):Java Web高級開發技術
- Mastering Concurrency in Go
- 從0到1:HTML+CSS快速上手
- 網絡爬蟲原理與實踐:基于C#語言
- 大模型RAG實戰:RAG原理、應用與系統構建
- Learning Laravel's Eloquent
- Mastering Data Mining with Python:Find patterns hidden in your data
- C++從入門到精通(第5版)
- Fast Data Processing with Spark(Second Edition)
- 零基礎學編程系列(全5冊)
- Splunk Essentials
- Lync Server Cookbook
- Python網絡爬蟲從入門到實踐
- C語言開發寶典