Answers for "php 8 new"

PHP
0

php8

// php8 class and construct
class Point {
  public function __construct(
    public float $x = 0.0,
    public float $y = 0.0,
    public float $z = 0.0,
  ) {}
}
Posted by: Guest on December-16-2020
-1

php 8 "<?="

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

Browse Popular Code Answers by Language