Can you put too much information into a variable?

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
Mr Tech
Forum Contributor
Posts: 424
Joined: Tue Aug 10, 2004 3:08 am

Can you put too much information into a variable?

Post by Mr Tech »

I'm creating a script that makes use of the $GLOBALS variable quite a lot. Is there too much you can put into a variable?

If I have a lot of information stored in $GLOBAL variable when the page loads, is this going to slow down the site much or not really?

Is there a limit to how much information one should store in a variable? How does it work?

And would it be better to remove information from that variable when I am done with it?

Thanks for your help! Want to make sure i get this right before I go any further.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Can you put too much information into a variable?

Post by requinix »

Any relation to this thread?
Post Reply