On Sat, 24 Jul 2004 11:27:31 +0000 (UTC), Daniel Tryba
<ne****************@canopus.nl> wrote:
Pjotr Wedersteers <x3****@westerterp.com> wrote: In Pascal I am used to var myarr : array [0..999] of anytype;
Is there something similar in PHP ?
Why would you need this?
You read the question. Why do you ask such a silly thing?
Arrays are dynamic... you can create any
key/index and any time in the programs execution (if you have enough
memory availabe).
You answered the question almost correctly then...
Creating an empty (fixed) size array seems kind of useless...
You went back to dumbsville? He started off by saying "In
Pascal....". Pascal doesn't HAVE dynamic arrays. You have to define
them. if you set var myarr:array[10] of char(10), for example.
You'd have:
[1]:[NULL]
[2]:[NULL]
[3]:[NULL]
[4]:[NULL]
[5]:[NULL]
[6]:[NULL]
[7]:[NULL]
[8]:[NULL]
[9]:[NULL]
[10]:[NULL]
So myvar[3] would return null until you set a value. That's not an
empty array.
Seems your added remarks at the beginning and the end were just to
show you are a jerk.
--
gburnore@databasix dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³
Black Helicopter Repair Svcs Division | Official Proof of Purchase
================================================== =========================
Want one? GET one!
http://signup.databasix.com
================================================== =========================