Null-safe operator
Null-safe operator ဆိုတာက php 8 မှာအသစ်ပါလာတဲ့ syntax ပါ။ သူရေးတဲ့ ပုံစံက property တွေ method တွေကို access လုပ်တဲ့ operator နဲ့ဆင်တယ်။ ဒီလိုလေးရေးရပါတယ်။ "?->" အရင်က php မှာကျနော်တို့ null တွေကိုစစ်ချင်ရင် အောက်ကပုံစံလိုစစ်ရတယ်ပေါ့နော်။ if($student ...
Dec 10, 20231 min read147


