- 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.
推薦閱讀
- 騰訊iOS測(cè)試實(shí)踐
- Learning Docker
- 深入淺出Java虛擬機(jī):JVM原理與實(shí)戰(zhàn)
- .NET 4.0面向?qū)ο缶幊搪劊夯A(chǔ)篇
- FreeSWITCH 1.6 Cookbook
- 神經(jīng)網(wǎng)絡(luò)編程實(shí)戰(zhàn):Java語(yǔ)言實(shí)現(xiàn)(原書(shū)第2版)
- Nginx實(shí)戰(zhàn):基于Lua語(yǔ)言的配置、開(kāi)發(fā)與架構(gòu)詳解
- ANSYS Fluent 二次開(kāi)發(fā)指南
- 區(qū)塊鏈技術(shù)進(jìn)階與實(shí)戰(zhàn)(第2版)
- 快速入門(mén)與進(jìn)階:Creo 4·0全實(shí)例精講
- Emotional Intelligence for IT Professionals
- 計(jì)算機(jī)應(yīng)用技能實(shí)訓(xùn)教程
- Instant Automapper
- 計(jì)算機(jī)組裝與維護(hù)(第二版)
- 數(shù)字媒體技術(shù)概論