PDA

View Full Version : r VS p in array's


briansol
03-23-2008, 07:13 AM
Can anyone tell me the difference?

I see these two used and i don't know what the difference is


$vbulletin->input->clean_array_gpc('r', array(

$vbulletin->input->clean_array_gpc('p', array(



what do the r and p signify?

calorie
03-23-2008, 07:43 AM
The r is for REQUEST, and the p is for POST. There are also g, c, and f for GET, COOKIE, and FILE respectively.

briansol
03-23-2008, 08:38 AM
ahh, cool. thanks.

Opserty
03-23-2008, 03:44 PM
N.B. REQUEST contains both the POST and GET superglobal arrays. Useful when you want a piece of code to be accessible via URLs and to post Forms to. ;)

briansol
03-24-2008, 02:52 AM
yup, i'm aware of how $_request works. Thanks :)