nerdexam
Zend

200-530 · Question #380

You want to create an anonymous function in the middle of a script that will return the square of a given number. Which of the following PHP scripts can you use to accomplish the task? Each correct…

The correct answer is B. <?php C. <?php. Zend 200-530 Exam

Functions

Question

You want to create an anonymous function in the middle of a script that will return the square of a given number. Which of the following PHP scripts can you use to accomplish the task? Each correct answer represents a complete solution. Choose two.

Options

  • A<?php
  • B<?php
  • C<?php
  • D<?php

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    83% (19)
  • D
    13% (3)

Explanation

Zend 200-530 Exam

Topics

#anonymous functions#closures#lambda#first-class functions

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice