Code: Select all
<?php
class MultiMan
{
function MultiFile()
{
MyOtherFunction();
}
function MyOtherFunction()
{
echo 'it works';
}
}
?>can anyone help?
Moderator: General Moderators
Code: Select all
<?php
class MultiMan
{
function MultiFile()
{
MyOtherFunction();
}
function MyOtherFunction()
{
echo 'it works';
}
}
?>Code: Select all
?php
$a = new MyClass;
for($i=0; $i<7; $i++)
{
$a->myFunction('variables'.$i,'2','2','3');
}
?>Code: Select all
<?php
class MultiMan
{
function MultiFile()
{
$this->MyOtherFunction();
}
function MyOtherFunction()
{
echo 'it works';
}
}
$foo =& new MultiMan();
$foo->MultiFile();
?>Code: Select all
class funkyClass
{
function bang()
{
echo "Bang in the Class!";
}
}
function bang()
{
echo "Bang in the globe!";
}Code: Select all
$instance = new funkyClass;
$instance->bang();
bang();Code: Select all
function slurp() {
echo "SLURP!";
}
class boomBang
{
function bang()
{
echo "BANG!";
}
function boom()
{
echo "BOOM!";
$this->bang();
slurp();
}
}