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 |
Does wordpress still use php?
what method is used to generate a random number?
Is salary a ratio or interval?
Does php support multithreading?
What are the two types of variables?
how we can retrive data in pdf along php mysql?
Tell me what are magic methods?
What is boolean in php?
What is the salary for php developer(Fresher)?
How many ways I can redirect a PHP page?
9 Answers MicroSec, N-Tier Business Solutions, University Exams,
Is php 7 backwards compatible?
Tell us what does $_cookie means?