Ask a Question related to PHP Development, Design and Development.
-
Jon #1
[Q] Variable function
Hi
can somebody tell me why, if the class member checkFn holds a function name
in the following example, why:
$object->checkFn();
gives "fatal error: Call to undefined function: checkfn()"
but
$f = $object->checkFn;
$f();
Works as expected ?
Many thanks in advance.
Jon
Jon Guest
-
set session variable in a function
how can i set a session variable in a function? The below doesn't want to work: function setCities() { Session("selState") =... -
Calling a function using a variable
I'm positive I've done this before, but I can't seem to figure it out again or find the FLA I did it in. I need to set a variable with the name of... -
Passing a variable to a package function vs. a local function
I'm a bit new to this so please bear with me... I've written a script that uses CGI.pm something like this: use CGI::Carp qw(fatalsToBrowser);... -
call function as variable
Hi! I have folowing function which they are a member in a class. function foo(){ something } function zoo(){ something else -
variable in function parameter
Hello. Let's say I have something like this: function aa($test) { $a = 8; echo $test; } $a = 2; aa("a is ". ($a>5?"greater":"equal to or...



Reply With Quote

