PHP How To Reverse Escape Characters

Do you like this?

Summary:
This shows you how to reverse escape characters in PHP.


Content:

function reverse_escape($value){
	$value= str_replace(' ',' ',$value);
	$value= str_replace('!','!',$value);
	$value= str_replace('"','"',$value);
	$value= str_replace('#','#',$value);
	$value= str_replace('$','$',$value);
	$value= str_replace('%','%',$value);
	$value= str_replace('&','&',$value);
	$value= str_replace(''','\'',$value);
	$value= str_replace('(','(',$value);
	$value= str_replace(')',')',$value);
	$value= str_replace('*','*',$value);
	$value= str_replace('+','+',$value);
	
	return $value;
}

 
comments powered by Disqus