Hi,
Just a quick sanity check...
Sometimes it's useful to use an array as a kind of reverse lookup. For
example, the indexes being productIDs and the value being it's name.
If I do something like this...
$x = array();
$x[1] = 'foo';
$x[345] = 'foo';
$x[12345] = 'foo';
.... PHP is intelligent enough only to allocate 3 data chunks for this right?
As I type this, it seems far more obvious, but if someone could just
confirm :-) Thanks!
J.
Just a quick sanity check...
Sometimes it's useful to use an array as a kind of reverse lookup. For
example, the indexes being productIDs and the value being it's name.
If I do something like this...
$x = array();
$x[1] = 'foo';
$x[345] = 'foo';
$x[12345] = 'foo';
.... PHP is intelligent enough only to allocate 3 data chunks for this right?
As I type this, it seems far more obvious, but if someone could just
confirm :-) Thanks!
J.
Comment