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 |
Explain about objects in PHP?
Is it easy to learn wordpress?
Can I use php in visual studio?
Apart from mail() function to send emails,is there any other functions in PHP to send emails?
What is php mainly used for?
What is a stored procedure in mysql?
What is $row in php?
What is the difference between get and post method in php?
What is the goto statement useful for?
Explain why would we use === instead of ==?
How to make a file encrypt and decrypt?
Can php replace javascript?