The best practice for not null if statements

前端 未结 4 1719
你的背包
你的背包 2021-02-13 16:32

I\'ve been writing my \"If this variable is not empty\" statements like so:

if ($var != \'\') {
// Yup
}

But I\'ve asked if this is correct, it

4条回答
提交回复
热议问题