workaround using global scope variables and
eval(). I just can't think of it yet.
Chris
--
Chris Jenkinson
[EMAIL PROTECTED]
"Mistrust all in whom the impulse to punish is powerful."
-- Friedrich Nietzsche, Thus Spoke Zarathustra
--
PHP General Mailing List (http://www.php.ne
that the $variable1, $variable2, etc. variables are only references to
the copy made with func_get_args(), rather than to the variables passed
to the first function.
Chris
--
Chris Jenkinson
[EMAIL PROTECTED]
"Mistrust all in whom the impulse to punish is powerful."
-- Friedrich
Eric Butera wrote:
One thing you could do is (assuming it's php4)
[...]
This is a bit of a pain though. :)
Unfortunately, changing the functions to use &$params and using
extract() is a significant API change and as such it would be a large
amount of effort.
Chris
--
Chris
passing $var_1, $var_2, etc. to the function.
Thanks for your comments. I think the amount of effort I would spend
learning how to use the reflection API compared to just using a defined
number of variables labelled in sequence is not worth it. If there was
another way, perhaps...
Chris
--
Chris
function specified in
$function_name, with the variables passed as parameters to that function.
Is this possible? Thanks for any help which can be offered.
Chris
--
Chris Jenkinson
[EMAIL PROTECTED]
"Mistrust all in whom the impulse to punish is powerful."
-- Friedrich Nie
the ^ and $ characters which signify the start and the
end of the string respectively.
For example:
$matched = preg_match('/^www\.test\.com$/', $string);
For more information look at the Pattern Syntax page:
--> http://php.net/manual/en/reference.pcre.pattern.syntax.php
Chris
--
e directories, but it is not loading it.
PHP is stored in C:/php, and works perfectly apart from not finding the
MySQL dll file.
If you could advise me for how to get PHP to load this DLL, I would be
very grateful!
Cheers,
Chris
--
Chris Jenkinson
[EMAIL PROTECTED]
--
PHP General Mailing
7 matches
Mail list logo