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

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top