Answer the question
In order to leave comments, you need to log in
HOW to pull out a parameter from an array?
Hello, please tell me how to get a parameter from an array.
Here's what I have in the request
. And here's what I can get so far..
And I would like only the 'titre' field.
$val=$request->request->get('new_liseuse', ['titre']); //
dump($val);
Answer the question
In order to leave comments, you need to log in
$request->request->get('new_liseuse')['titre']
to make it clear:
$array = $request->request->get('new_liseuse');
var_dump($array['titre']);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question