Jump to content

Archived

This topic is now archived and is closed to further replies.

Ninjakreborn

question

Recommended Posts

I know a lot more baout php now I have a specific question.
I am trying to create my own function to handle arrays coming from form fields. Where I can just call the function and have it print the info, this may or may not work any ideas.

Share this post


Link to post
Share on other sites
I have some functions for request variables and arrays, if that is what you mean, but probably not:
[code]
function p($var)
{
    //returns the POST variable you request
    return $_POST[$var];
}


function g($var)
{
    //returns the GET variable you request
    return $_GET[$var];
}

function pr($arr)
{
    //print the array in a readable format
    echo "<pre>";
    print_r($arr);
    echo "</pre>";
}
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.