PHP quiz · 35 questions

Arrow functions

Read the code

What does this print?


<?php
$double = fn($x) => $x * 2;
echo $double(4);
  • 1–3 answer
  • ← previous
Question 3 of 356%