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
Tell me what is the actually used php version?
How values in arrays are indexed?
What does $_cookie mean?
What is the meaning of xdebug?
Why sessions are used in php?
What can php do?
Explain about looping in PHP?
What is php stack?
Is uploaded file php?
What is print_r?
How do http requests work?
How to set a page as a home page in a php based site?
Is php coding easy?
What is the advantage of runtime polymorphism?
What is the difference between nowdoc and heredoc?