When does filter_input() remove slashes of POST variables?
问题 I created a small PHP-script, that runs on a server with PHP 5.2.17 and the magic_quotes_gpc directive enabled. I have no write-access to the php.ini file, and I'd like to remove all slashes from user inputs. This should work even if the magic_quotes_gpc directive is turned off (for example when moving the scripts to another server). It should also work recursively when arrays are submitted by the user. I prefer using a built in-function. <html> <head> <title>HP</title> </head> <body> <form