Can you pass the $_GET array?

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
User avatar
snowrhythm
Forum Commoner
Posts: 75
Joined: Thu May 04, 2006 1:14 pm
Location: North Bay Area, CA

Can you pass the $_GET array?

Post by snowrhythm »

is there a way to pass the $_GET array into another array, say like this? ->

Code: Select all

$newArray = $_GET;
Begby
Forum Regular
Posts: 575
Joined: Wed Dec 13, 2006 10:28 am

Post by Begby »

Didja try that to see what happens?
User avatar
snowrhythm
Forum Commoner
Posts: 75
Joined: Thu May 04, 2006 1:14 pm
Location: North Bay Area, CA

Post by snowrhythm »

it works! i was wondering because i tried it in a program but wasn't getting any results, so it must have been something else that went wrong (no error message though). i guess it never hurts to do a little testing...
Post Reply