фунция varArg() динамически генерирует аргументы на основании определенных критериев (та что выше - дана просто для демонстрации ).
Вопрос в том как их лучше скормить array_intersect() ?
-~{}~ 14.04.05 18:43:
Автор оригинала: Net Dog
[m]eval[/m]'ом если уж очень так хочется
Be careful when using eval() on heavy usage sites in PHP 4.0+ as it takes vastly longer to activate due to the limitations of the Zend engine.
The Zend engine changes the PHP to a binary structure at the START of the file, and then parses it. Every time an eval is called, however, it has to reactivate the parsing procedure and convert the eval()'d code into usable binary format again.
Basically, if you eval() code, it takes as long as calling a new php page with the same code inside.
дело в том, что array_intersect() в моем случае вызывается довольно часто и использование eval скорее всего будет неоптимально. Другого решения у меня пока что нет, но будем думать.