how big can a scalar get?

  • Thread starter Vassilis Tavoultsidis
  • Start date
V

Vassilis Tavoultsidis

What happens if I make a simple scalar variable big? What memory problems it
can give me and what is the limit?

e.g.

$t = "";
$maxlen = 100000;
while (length($t) < $maxlen)
{
$t = $t.$i."|";
};
 
D

Derek Thomson

Vassilis said:
What happens if I make a simple scalar variable big? What memory problems it
can give me and what is the limit?

It can be as big as you like. You are only limited by the size of your
computer's memory.

Derek.

[Remove NOSPAM to reply directly]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top