Classes in PHP
Posted: Tue Feb 24, 2004 1:51 am
class Test{
function Test(){
echo "FirstName";
}
function TestMe(){
echo " LastName";
}
}
$sun=new Test();
function Find($var){
$sun->TestMe(); //-----------***
echo $var;echo "<br>";
echo "Some text";
}
call_user_func('Find',$variable);
It is giving Error: at (***) line AS
Fatal error: Call to a member function on a non-object
anybody?? i am posting again becuase my previous post is not Clear
Thanks
Jen
function Test(){
echo "FirstName";
}
function TestMe(){
echo " LastName";
}
}
$sun=new Test();
function Find($var){
$sun->TestMe(); //-----------***
echo $var;echo "<br>";
echo "Some text";
}
call_user_func('Find',$variable);
It is giving Error: at (***) line AS
Fatal error: Call to a member function on a non-object
anybody?? i am posting again becuase my previous post is not Clear
Thanks
Jen