eval - isn´t as slow as rumors about it

From: Date: Sun, 14 May 2000 19:36:01 +0000
Subject: eval - isn´t as slow as rumors about it
Groups: php.version4 
Request: Send a blank email to php-version4+get-15008@lists.php.net to get a copy of this message
Hi, just a little comment: A few posts ago I was worried about being unable to reference in variable function calls (like $str="db->fooobj->woo"; $this->$str();). But we found out that there´s only the eval() way to do it. Eval isn´t as slow as public thinks. I tested now and I use it to fill multi-dim (between 2-6 dimensions) arrays based on a condition and I´m surprised, it´s fast. Perhaps a small note on eval()´s documentation, what eval() actually does and when it´s expected to be slow would help some users. I would provide my multi-dim-array-fill code snipplet as an advanced use of eval(). Regards, andré

« previous php.version4 (#15008) next »