I want to check if:
- a field in the array isset
- the field === true
Is it possible to check this with one if
statement?
Checking if ===
would do the trick but a PHP notice is thrown. Do I really have to check if the field is set and then if it is true?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…