Answers for "new things in php 8"

PHP
0

What’s New in PHP 8

Constructor Property Promotion
Validation for Abstract Trait Methods
Incompatible Method Signatures
Arrays Starting With a Negative Index
Union Types 2.0
Consistent Type Errors for Internal Functions
throw Expression
Weak Maps
Trailing Comma in Parameter List
Allow ::class syntax on objects
Attributes v2
Named Arguments
Nullsafe Operator
Saner String to Number Comparisons
Saner Numeric Strings
Match Expression v2
Stricter Type Checks for Arithmetic/Bitwise Operators
Posted by: Guest on December-24-2021
-1

php 8 "<?="

<?= is a shorthand for <?php echo $a; ?>
Posted by: Guest on January-13-2021

Browse Popular Code Answers by Language