Answer Posted / prakash1991
class class_name extends base_class
{
function function_name()
{
// call base class function
$this->base_class_function();
// function body
}
}
call the function from out side whenever you use
//include the php file where you write the class
include_once 'class_file.php';
$variable_name = new class_name()
// set the variable value that you want to use in function
$variable_name->class_Variable = "";
//call the function
$variable_name->function_name();
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is session data?
What does a dependant variable mean?
How to get complete current page url in php?
What is the purpose of break and continue statement?
What is xss and csrf?
what are interfaces and Abstart classes
Which functions are used to count the total number of array elements in php?
Can you use php and javascript together?
Tell me what does the scope of variables means?
Will a comparison of an integer 12 and a string "13" work in php?
> symbol is used to redirect the output of a command. State Whether True or False?
Tell me what sized websites have you worked on in the past?
What is $_ request in php?
How do you use end in python?
What is a php session?