Functions within functions
Posted: Fri Jan 28, 2005 7:27 am
Hi guys, been searching "all over the web" now to find a solution, but it's "impossible". 
Anyway, here's the problem:
I know I can call the b()-function by doing this:
pub::a();
b();
But after calling pub::a();
I want to be able to call pub::b();
Regards, Kristian
Anyway, here's the problem:
Code: Select all
<?php
class pub
{
function a()
{
function b(){ }
}
}
?>pub::a();
b();
But after calling pub::a();
I want to be able to call pub::b();
Regards, Kristian