why parse_str of my data didn’t work correctly?

  axios, javascript, php, symfony

i’m work with symfony 4 on a project where i use axios for ajax request. I have a problem with the parse_str it seems don’t work as i thought. I send i request with axios to my php file. I catch it with request->getContent().

I wanted to parse what i got but when i var_dump my values it seems that all my data is put as a key of an array so that i can’t access to them.. i searched how to fix my problem but i didn’t find if you have some astuce…

result on console

in my php

what i send with my axios post

Source: Symfony Questions

LEAVE A COMMENT