? ???? "FORUM PHP 2024"?? Gina Banyard? ?? ???? ?? ??? ?????.

?? PHP 2024
spO0q ?? ? 10? 13?
3?? ??? ???? ??? ????
? ?? ????? ??? ?????.
- ????
- ??
- ??? ??
Google?? 'PHP ???'? ???? ??? ?????, ???, ??, ??? ??(?: ??, ????)? ?? ?? ??? ??? ?????.
????? ???.
????? ???? ??? ???? ??? ? ?? ?????.
??? ??
??? ??? ?? ?? ???? ??? ?? ??? ???? ????? ?? ???.
???? ?? ??? ??? ??? ??????
IMHO, ???? ???? ?? ??? ??? ?? ????? ???? ?? ???? ??? ?? ??? ????.
- ?? ??? ?????
- WET ??
- ??
???? ???(?? ?? ??? ? ??) ?? ? ???? ??? ? ????.
??? ? ???? ?? ??/??
?? ?????? ?? ?? ??? ???? ??? PHP ??? ???? ????.
?, ??? ?? ???? ??? ??? ? ???? ??? ??? ???? ????? ??? ? ????.
?? ????? ?? ????? ?????? ?? ???? ????? ?? ??? ?? ?? ??? ? ???? ????.
??: "Les Exception : le trou dans la raquette du typage"(fr)
Monads? ???? ?? ??? ???? ??? ?? ? ????(?: FileErrors::AccessDenied) ??? ???? ?????.
?? ??? ????
??? ?? ???? ???? ?? ??? ? ????. ???? ??? ???? ?? ????.
?? ?? ?? ???? ?? log()?? ??? ?? ???? ???? ????? ?? ??? ??? ? ????.
?? ??? DRY? ???? ?? ??? ??? ?? ???? ? ??? ??? ?? ???? ?? ?? ????.
??? ?? ??? ??? ?? ???? ???? ??? ???? ????. ??, ?? ??? ???? ?? Monad? ???? ?? ????.
final class LoggerMonad { public function __construct( public mixed $data, public array $logs = [], ) {} public function bind(callable $fn) { $resultLoggerMonad = $fn($this->data); return new LoggerMonad( $resultLoggerMonad->data, [...$this->logs, ...$resultLoggerMonad->logs], ); } } function loggify(callable $fn): Closure { return function ($value) use ($fn) { $name = (new ReflectionFunction($fn))->name; $log = [ 'Running '. $name .'('. var_export($value, true) .')' ]; return new LoggerMonad($fn($value), $log); }; }
?? ?? loggify ??? ??? ?? ??? ? ????.
function add2(int $v): int { return $v + 2; } function square(int $v): int { return $v * $v; } function multi3(int $v): int { return $v * 3; } function logIt($value, callable ...$fns) { $logging_fns = array_map(loggify(...), $fns); $monad = new LoggerMonad($value); foreach ($logging_fns as $fn) { $monad = $monad->bind($fn); } return $monad; } print_r(logIt( 3, add2(...), square(...), multi3(...) ));
??: Gina Banyard? "Monades simplement"(fr)
????? ??????
?? ??? ??? ?
???? ??? ??? ??? ?? ??? ?? ???? ?? ????.
?? ?? ???? ????? ? ?? ???? ???? ???(~ ???)? ????? ??? ?? ??? ??? ?? ?? ???? ?? ? ????.
??? ?? ???? ??? ??? ?????. ???? ? ? ??? ??? ?(?? ??)? ?????.
??? ???? ?? ?? ???? ???? ?? ?????. ?? ?? ???? ??? ?????? ??? ??? ? ????.
??? ? ?? ??????
??? ?? ??? ???, ???? ?? ?? ????.
??? ? ?? ?? ??? if ??? ?? ?? ??? ?? ?? ?? ???? ?? ? ????.
final class LoggerMonad { public function __construct( public mixed $data, public array $logs = [], ) {} public function bind(callable $fn) { $resultLoggerMonad = $fn($this->data); return new LoggerMonad( $resultLoggerMonad->data, [...$this->logs, ...$resultLoggerMonad->logs], ); } } function loggify(callable $fn): Closure { return function ($value) use ($fn) { $name = (new ReflectionFunction($fn))->name; $log = [ 'Running '. $name .'('. var_export($value, true) .')' ]; return new LoggerMonad($fn($value), $log); }; }
??: fp4php - ???
??? ??
??
- ? ??? ??? ?? ??? ???? ????: Maybe, Each, Logger, List, Reader ?
- ? ???? ? ?? ???? ??? ???? ?? ??? ???? ? ????
- ? PHP? ?? ?? ?? ??? ???? ???? ??? ???? ???? ????
??
- ? PHP? ?? ?? ?? ??(?: Generics)? ???? ???? ??? ???? ???? ????
- ? ??? ????? ????
? ???
- ???, ??? ??? ? Cats MTL? ??? ??? ?? ??
- PHP? ???? ???
- PHP? ??? ?????
???
?? PHP ???? ?? ?? ? ?? ??? ????.
?? ?? ????? ????? ??? ??? ??? ????? ? ???.
??? ??? ??? ?? ?? ??? ?? ?? ???? ??? ???? ?? ??? ??? ???????.
??? ??? ?? ??? ???? ?? ??? ????? ????. ?????? ??? ???? ???.
? ??? PHP: ???? ?? ?????. ??? ??? 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)

??? ??











ToversionAphp ??, forclarityandeasofrouting, ac

TOSECURELYHANDLEAUSTENCENDACTIONANDACTERIZINGINPHP, FORCUCTSESTEPS : 1. ALWAYSHASHPASSWORTHPASSWORD_HASH () ? VERVERIFYUSINGPANSWORD_VERIFY (), usePREPAREDSTATEMENTSTOPREVENTSQLINGERGED, andSTOREUSERSESSEATAIN $ _SESSIONSAFTERLOGIN.2.impleplempletrole ?? ACCESSC

ProceduralAndObject-OrientedProgramming (OOP) InphpDiffersiMINTIFINTIONTERINGLISTURE, ??? ? ? DATAHANDLING

phpdoesnothaveAbuilt-inweakMapButofferSweakReference.1.WeakReenceAllowsholdingReferences withoutpreventinggarbageCollection.2.ItusteForCaching, Eventlisteners, andMetAdataWithoutAftingObjectLifeCycles.3.youcoucococococococcinccing

PHP?? ?? ???? ???? ????? ??? ?? ??? ???? ?? ??? ??? ??? ???? ????. 1. finfo_file ()? ???? ?? ?? ??? ???? ???/jpeg? ?? ?? ?? ? ?????. 2. uniqid ()? ???? ??? ?? ??? ???? ? Web ?? ????? ??????. 3. php.ini ? html ??? ?? ?? ??? ???? ???? ??? 0755? ?????. 4. Clamav? ???? ???? ???? ??? ??????. ??? ??? ?? ???? ????? ???? ?? ??? ????? ???? ??? ? ??? ?????.

PHP?? ==? ==? ?? ???? ?? ??? ??????. == ?? ??? ?? ?? ?????. ?? ??, 5 == "5"? true? ????, ?? ??? ???? ?? ?? ??? ????? ????? (? : 5 === "5"? false? ?????. ?? ?????? ===? ? ???? ?? ?????? == ?? ??? ??? ???? ?????.

?, PHP? ?? ?? ?? ?????? ?? MongoDB ? Redis? ?? NOSQL ??????? ?? ??? ? ????. ?? MongoDBPHP ???? (PECL ?? Composer? ?? ??)? ???? ????? ????? ??? ?????? ? ???? ????? ??, ??, ?? ? ?? ??? ?????. ??, Predis ????? ?? Phpredis ??? ???? Redis? ???? ?? ? ?? ? ??? ???? ??? ????? Phpredis? ???? ?? Predis? ?? ??? ?????. ? ? ?? ??? ???? ? ????? ????.

PHP?? ?? ??? ??? ???? ??? ??? ????. 1. ?? ??? ?? ? ?? ??? ??? ???? ???? ??? ? ????. ??? ??? ???? ????? ????? ???? ????. 2. ?? ?? ?? - ??, ??? ???? ?? ??? ?????. 3. ?? ???? ??? ??? ???? ??? ??? ?????. 4. Division? / ??? ???? 0?? ??? ?? ????? ??? ?? ??? ?? ? ? ????. 5. ???? ??? ???? ?? ?? ? ?? ??? ???? ? ??? ? ???, ??? ?? ? ? ??? ??? ???? ?????. ? ???? ???? ???? ??? ??? ??? ???? ?? ??? ? ??????? ????.
