Multiple choice technology web technology

$request->setParameter('bar','foo'); echo $request->getParameter('bar'); What is the output?

  1. bar

  2. foobar

  3. foo

  4. null

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The setParameter method sets 'bar' to 'foo'. The getParameter method then retrieves the value of 'bar', which is 'foo'. This is basic parameter storage and retrieval in Symfony - the key 'bar' holds the value 'foo'.