PDA

View Full Version : STR and INT?


Sean S
04-07-2006, 11:21 PM
Quick question, I'm trying to learn and create my own hacks. I have noticed that in many files, lines such as this have been used a lot, could someone please explain to me what this actually achieves?


if ($_POST['do'] == 'this')
{
globalize($_POST, array(
'subject' => STR,
'message' => STR,
'summary' => STR,
'category' => INT,
'upload',
'icon' => FILE
));


like what does this mean? => STR, or => INT

thanks in advance for any info :)

akanevsky
04-07-2006, 11:39 PM
It converts the data into String or Integer, accordingly.

Sean S
04-07-2006, 11:41 PM
oh ok, now it makes more sense, thanks buddy! :)