Page 1 of 1

old php code

Posted: Fri Jan 07, 2011 1:37 pm
by paul88
I have some old php code which I am trying to understand and can't find anything about some functions on the internet.

does anyone recognise the function fetch_POST ?

I assume it does the same thing as $_POST['VAR'];

What version of PHP is that from?

Thanks

Re: old php code

Posted: Fri Jan 07, 2011 2:08 pm
by McInfo
There is no built-in function named fetch_POST. It must be a user-defined function. (The "user" here is the author of the PHP script.) Look through the rest of the code for the function definition, which begins with

Code: Select all

function fetch_POST
Given the name, the function probably returns a filtered or sanitized value from the $_POST superglobal array.