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 |
Php error constants and their descriptions
How do you set the browser timeout?
How can you access a COM object from a PHP page?
How to convert a string to uppercase in php?
How can we encrypt the username and password using PHP?
13 Answers Avaria, HCL, TCS, Xpert,
Is php used in 2019?
Are php variables global?
What is a php session?
How can we display the output directly to the browser?
What are getters and setters php?
Explain the advantages of using PHP?
Do csrf tokens expire?