taintMark strings as tainted Description
bool taint(string
&$string, string &...$strings)Manually marks the given strings as tainted, as if they had arrived from user input. The variables are passed by reference, but the mark itself is stored on the string rather than on the variable: every variable sharing the same string becomes tainted at once. This is mainly useful for testing, and for simulating user input in CLI scripts where the $_GET, $_POST and $_COOKIE superglobals are not populated. Parameters
Return Values
Always returns ExamplesExample #1 taint example The above example will output something similar to: bool(true) Notes
See Also
|