On Sat, 2003-11-29 at 21:25, john wrote:
> > $result = eval( 'return $array'.$test.';' );
> 
> Um... 
> 
> echo $array[$dim1][$dim2][$dim3][$dim4]; 
> 
> eval == evil. I can't think of a single legimiate reason why you'd want/need 

Eval is not evil, but it is often insecurely used. It has it's purpose
otherwise it wouldn't exist.

> to make a string "[$dim1]...." first, and if you have to I'd suspect that 
> something is very wrong with the way you are writing your script. 

*shrug* I merely answered what appeared to be the posed problem. I never
indicated why one might do what the original poster was doing, nor was
it an issue for my answer. That said, there are definitely uses whether
you happen to have one handy or not.

> Feel free to prove me wrong, though :) 

Different strokes for different folks :)

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

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

Reply via email to