old php code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
paul88
Forum Newbie
Posts: 1
Joined: Fri Jan 07, 2011 1:33 pm

old php code

Post 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
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: old php code

Post 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.
Post Reply