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 which function gives us the number of affected entries by a query?
How do you end a function in python?
Is php a cms?
How to get number of days between two given dates using PHP?
How can we access the data sent through the url with the get method?
Explain what are the three classes of errors that can occur in php?
What can php do?
How to read a file in php?
What is baseurl?
what is mean by portal
When to use get and post request?
What is uniqid php?
How cookies are trported from browsers to servers?
What is the content of /etc directory?
Why sessions are used in php?