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 |
Which character is used to match exactly one character?
Can age be a variable?
what is interface in java.
What are the functions used in php?
Which function would you use to determine the length of a string in php?
List data types in PHP?
write a program to print [123] [456] [789] note : braces also need to be printed
how to get server date and time?
what are the differents between 'action' and 'target' in form tag?
Write down the code for save an uploaded file using php?
How to check an element is exists in array or not in php?
Starting or restarting a computer is called