PHP quiz · 35 questions

Spread operator

Read the code

What does this print?


<?php
$a = [1, 2];
$b = [...$a, 3];
echo count($b);
  • 1–3 answer
  • ← previous
Question 27 of 3574%