Problem with getParam


Hello i have problem with getParam i cant get value from parameter if put this special caracter like this ’ \ ’ .

I post with this value “user\test”
$request->getParam(‘value’); value show to me like this (user test)
Can help me how to change special character?


\ is the escape character. But you can escape the escape character! So just type it twice every time that you need it (ie \\). Even better, avoid using it because it creates confusion and a bit of a mess!


Thanks Antnee
Can make function in Slimframework on logic where get the post request.
Example if user post value = “test\user” the function can replace value “test\user” ?