Give small demo of writting OOP in PHP-mysql.
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 |
how can i upload only pdf files in my website? files has not a pdf extension mantioned
Why php is used?
what is array_search() in php?
WHat is the diff. between PHP4 and PHP5?
6 Answers Clarion Technologies, IBM, OmniNet, Sparkton Infotech,
How do you use bcrypt for hashing passwords in php?
What is the function to count elements in an array in PHP?
How to track no of user logged in?
Which software is used to run php programs?
Differentiate between php5 and php7?
How do you get the Browser information?
How to find second highest salary
What are the difference between include_once & Require_once?