I am thingking if i can pass arrays into a function in php, I mean as a parameter..
I know how to pass a variable like function try($try) { } but how can I accomplish if the variable to be pass is an array variable like,
$arrTry = array("name"=>"Keydi", "lname"=>"Paul");
Then,
function try($arrTry) { }
But the problem is that I do not know how could I get the value of the passed array inside the function..
My purpose is that i will make a function to get the table fieldnames then passed the result to a function that will make the sql statement for me,..,
Is there any way out??or do the long way,..,.,
1 Answer