NULLSAFE ??? (?->)? ??? NULL?? ???? ??? ?? ?? ??? ?? ???? ??? ????? ???? ?? ? ?? ??? ???? ? ?? ??? ????? ?????. 1. ??? ????? ??? ? ?? ??? ???? ?? ?? ? ? ??? ?? ? ????. 2. ?? ??? ?? ???? ???? ?? NULL MERGE ??? (??)? ?? ??? ? ????. 3. ??? ?? ?? ?? ?? ??? ??? ??? ? ???, ??? ??? ??? ?????. ? : $ city = $ user?-> getAddress ()?-> getCity () ?? '???? ??'; ?? ??? ???? ??? ???? ????.
PHP 8? NullSafe ??? ( ?->
)? ????, ?? ???? ?? ?? ?? ???? ??? ? ? ??? null
? ? ??? ?? ??? ?????. ? ???? ???? ?? ?? ? ?? ??? ?? ? ? ????? ???? ???? ?? ? ????.
NullSafe ???? ?? ????????
??? null
?? ???? ??? ??? ?????? ???? ????? ?->
???? ?? ??? ? ????. ??? API?? ?? ? ????? ??? ???? ?? ?? ?? ?? ? ?? ???? ??? ? ? ?? ?????.
?? ??:
?? ?? $user->getAddress()
?? ??? ??? ?? $user
? ??? ?? ???? ?? ?? $address->getCity()
??? ? ????. ?? ? ??? null
? ?? ->
??? ???? ??? ?????.
? ??? ??? ? ? ????.
$ city = $ user?-> getAddress ()?-> getCity ();
?? ?? ? ???? null
?? ?? ???? null
???? ??? ???? ????.
NullSafe? ???? ???? ???? ??? ????? ??? ??????
? null ??
? ????? ???? ??? ?? ?? ? ?? ????.if ($ user! == null && $ user-> getAddress ()! == null) { $ city = $ user-> getAddress ()-> getCity (); } ? ?? { $ city = null; }
?? ??? ?? ?????.
$ city = $ user?-> getAddress ()?-> getCity ();
NULL ?? ???
? ? ? ?????. ???? ????? ?? ? ? ??????
:$ city = $ user?-> getAddress ()?-> getCity () ?? '???? ??';
?? ??? ?? ???
null
???? ?? ?? ?? ? ? ????.
?? ????, nullsafe ???? ??? ? ?????
???? ?????? ???? ? ? ?? ?? ??? ????.
??? ?? ?? ???? ?? ???
? ???? ???? ?? ??? ?? ???? ??????? ??? ????????. ?? ??:$ value = null; $ result = $ value?-> somemethod (); // ?? ????? ??? NULL? ?????
???
$value
?? ?? ?? ?? ? ?? : ?? ??.$ value = 123; $ result = $ value?-> somemethod (); // ???? ?? : uncught ?? : int?? ?? ?? somemethod () ??
??? ???? ??? ???
?->
???null
? ? ??? ??????.?? ??? ??
?? ??? ? ???? ?? ???? ?? ????? ?? ??? ???? ??????? ?? ?? ??? ?????.className? :: staticMethod (); // ?? ??
????? ?? ??. NullSafe ???? ?? ?? ?? ??? ??? ? ????? ???? ??????. ??? ? ??? PHP ??? ???? ? ???? ???????????.
? ??? PHP 8?? NullSafe ???? ???? ??? ??????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ???? armalluppassingvaluestoafunctionbyspecifyingtheparameternameinsteadofrelyparameterorder.1. theyimprovecodeReadabilityBymakingFunctionCalls-Documenting, asseeninexampleslikeresizeimage (50, Preserveratio : Preser, Upers

thestaticreturntypeinphpp8meanstemexpectedtorettoreturnaninstance? anychildclass.1

jitinphp8improvesperferformanceBycompilingFreexectedCodeIntomachineCodeAtruntime.insteadoPCodeSeachCodeSeachTime, jitIdentifiesHotsectionsOfcode, compilesthemintonativeMemachinecode, CachesitforReuse, ? andreduceStretationOverHead

ConstructorPropertyPromotionInphpp8allowsomaticcreationandAssignmentmentofclassPropertiesdirectortifferfirectorparameters.

PHP8? ?? ??? ???? ??, ?? ?? ?? ?? ?? ?? ??? ?? ? ? ????. 1. Mixed? ????, ?? ??? ?? ? ??? ?? ??? ?? ?? ???? ??? ????? ?????. 2. ??? ??? ??? ???? ??? ?? ??? ???? ??? ?? ??? ????. 3. ?? ??? ??? ??? ?? ??? ? ?????? PHPDOC? ?? ?? ??? ???? ?? ????. ??? ???? ??? ?? ????? ??? ????? ?? ??? ??? ???? ? ????.

PHP8? ?? ???? ??? ??? ?? ? ??? ??? ??? ?????. 1. ?? ??? ???? ??? ?? (===)? ??????. 2. ??? ? ??? ???? ?? ?? ??? ???? ????. 3. ?? ?? ?? ??? ?? ? ? ????. 4. ?? ?? ?? ? ?? ?? ??. HTTP ?? ?? ??? ?? ??? ?? ? ?? ?? ? ?? ????? ?????. ?? ?? ?? ??? ???? ???? ????.

PHP8? ?? ??? ?? ?? ?? ? JIT ???? ? Zend ?? ????? ????? ?? ?? ????? ??? ????? ?? ????. 1. JIT ????? ???? ?? ??? ??? ??? ????? CLI ???? ?? ?? API? ??? ?? ?? ???? ??? ? ???? ??? ??? ????. 2. Opcache? Opcode Caching ? Preloading ??? ????? ???? ??? I/O ? ?? ?? ?? ??, ?? Laravel ?? Symfony? ?? ??? ??; 3.?? ???? ??? ? ?? ??, ?? ??? ??? ?? ?? ?? ?? ???. ? ??? ??? ???? ?????. 4. ?? ?? ??? ?? ???? ????? ?? ??? ??? ???? PHP8? ??? 10? ? ? ????.

PHP8 ??? ??? ? ??? ?? ?? ??? ?? ???? ?????. 1. #[Route ( '/home')? ?? #[] ??? ???? ??? ???? ?? ???, ??? ?? ?????. 2. ?? ?? ? ??? ?? ???? PHPDOC?? ?????. 3. ??? ?? ??? LogExecution Log ??? ??? ?? ?? ???? ???? ???? ???? ???????. 4. ???, ??, ORM ?? ? ?? ??? ???? ?? ??? ???? ????? ???? ?? ??? ?? ? ?? ?? ??; 5. ??? ?? ??? ? ? ??? ?? ???? ??? ??? ??? ??? ??? ??????.
