Stop Writing PHP Like This (8.6 Fixes It)
This is how PHP 8.6 lets you write a string transformation, with no closures and no temp variables. $name = 'Scott Keck-Warren'; $fixed = $name |> str_replace('Scott', 'Alice', ?) |> strtolower(...); // string(17) "alice keck-warren" var_dump($fixed); It’s going to be released November 19, and I’ll also show you a deprecation that’s almost certainly in […] The post Stop Writing PHP Like This (8.6 Fixes It) appeared first on PHP Architect.
Soutenez PHP Architect en consultant la ressource originale
Lire l'article originalVous aimez découvrir ces sources ?
Soutenez-moi sur Patreon