I am not to sure if this can be done but I would like you have it so I could use something like this
function a() {
if ($this==1) { echo "something"; }
}
a();
and then in the url I do this
script.php?this=1
is there anyway this would work?
i think you need something like this:
function a($this) { if ($this==1) { echo "something"; } } a($this);
Ought to work:
function a() { if($_GET['this']==1) echo 'something'; } a();
Thanks 😃