assoc 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
Pizmal
Forum Newbie
Posts: 19
Joined: Wed Jul 14, 2004 7:43 pm
Location: USA

assoc array

Post by Pizmal »

Is there a way to carry an assoc array to another page? I heard of sessions and I know how to carry an variable over just by typing it into the url (a href).

From
Pizmal
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Just add it to $_SESSION same as a string var:

Code: Select all

$_SESSION['foo'] = $foo;
Post Reply