How to make a php script that takes a argument and escapes a quote mark in every string it finds, no matter how many levels of nested array are there.
I tried something like this
$FileName = preg_replace("/'/", '', $UserInput);
but i donot want to replace the string
(see
addcslashes)