> If you unset an array that isn't associative, will that mean there will
> be a gap in the numbers?

Yes the items are grabed by their index.
I'm using those arrays to manipulate 3D geometric shapes,
(either vrml/x3d, OpenGL, POV and other ones**)
so cartesian coordinates are first referenced in a first array,
and then faces (facets?) are build giving the index of 3 (or more) points,
so the index need to be the good one and not on a null or the next value.

> Or will PHP realize "OK I need to change the numbers indexing the other
> elements"?

** as PHP is a high level language I can write very quickly and very easily 
scripts to make manipulations on my 3D meshes, but the problem is that it 
often takes more than an hour to execute, so I realy need to learn about 
writing efficient code and optimizing PHP...

[snip]----------8<-------------------

> I'm compelled to ask *why* you want that result.  In most cases it makes
> no difference to your coding, so the only real reason I can see is a
> somewhat obsessive desire for neatness!

Perhaps there is a better way to grab the good points to build the faces,
but I did not find another solution yet.
If you know about another better issue to resolve this problem, please let 
me know about it.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to