$list = $_REQUEST['list']; $list=stripslashes(str_replace(array('\n', '\\'),"",$list)); $listarr = json_decode($list, true);