Studio64
09-22-2002, 10:20 PM
I remember this function with another language but, I don't know the implementation in PHP and I can't find it on the site.
Essentially how do I reference the methods of the class without calling the instansiated variable name.
Instead of
$a = new Class();
$a->Method_One("hello");
$some_var = $a->Method_Two();
echo $a->Something;
You would execute like this (but, obviously not this :D)
$a = new Class();
use($a) // (Maybe with($a)?
{
Method_One("hello");
$some_var = Method_Two();
echo Something;
}
I'm sure one of yall OOP guys remembers what I'm talking about...
Is their a similar function in PHP?
Essentially how do I reference the methods of the class without calling the instansiated variable name.
Instead of
$a = new Class();
$a->Method_One("hello");
$some_var = $a->Method_Two();
echo $a->Something;
You would execute like this (but, obviously not this :D)
$a = new Class();
use($a) // (Maybe with($a)?
{
Method_One("hello");
$some_var = Method_Two();
echo Something;
}
I'm sure one of yall OOP guys remembers what I'm talking about...
Is their a similar function in PHP?
