I'm working on someone's code and they have a constructor that uses:
class qwerty {
public function __construct(){
// some other code
$this->get = $_GET;
}
}
My question is this: Is it possible to sanitize the data within the constructor? Even using some simple function like strip_tags()?
Example of usage:
$qwerty = new qwerty;
qwerty->get['id'];