On 11/2/07, rohini <[EMAIL PROTECTED]> wrote:
>
>
> Hi paul,
> Why you are trying to use the scope resolution operator see you can use
> this way simply.
>
> Code:
> **
> class foobar {
> function bar2 () {
> echo "Yep, in bar2() right now\n";
> }
>
> public function foo2
Hi paul,
Why you are trying to use the scope resolution operator see you can use
this way simply.
Code:
**
$funname();
?>
--
View this message in context:
http://www.nabble.com/Function-variables-in-classes-tf4730655.html#a13545465
Sent from the PHP - General mailing list archive at Nab
On 11/1/07, Eric Butera <[EMAIL PROTECTED]> wrote:
>
> I don't know if this has been said yet, but in 5.3 they added this:
> Dynamic static calls: $c = "classname"; $c::someMetod();
apparently it works in 5.2.4 as well:
staticMethod();
$foo->nonstaticMethod();
?>
-nathan
On Nov 1, 2007, at 7:10 AM, Paul van Haren wrote:
Hi there,
I'm trying to execute function variables. This works fine outside
class
code, but gives a fatal error when run within a class. The demo
code is
here:
foo2();
?>
The error message reads:
Fatal error: Call to undef
I just did. The result is the same however
Regards, Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try using parent::bar2(); instead of foobar::bar2();
Op 1-nov-2007, om 12:10 heeft Paul van Haren het volgende geschreven:
Hi there,
I'm trying to execute function variables. This works fine outside
class
code, but gives a fatal error when run within a class. The demo
code is
here:
6 matches
Mail list logo