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 to get the DNS servers of a domain name?
i'm b.com graduate and doing MCM- 1year(Master in Computer Management. i'm very interested in PHP? Please tell me some suggetion and the scope of PHP in the market. My E-mail pawan.register@gmail.com Thanks & Regards Pawan.
How to create reusable code in php?
What is variable function php?
can anyone tel me about the Expression engine Note:Its a CMS in Php
Difference between array_combine and array_merge?
Is php a low level language?
How do you trim spaces in excel?
Is php a framework?
Write a program to upload a file in php?
which is the best institute for php training near delhi & NCR......& what is the fee for the same....
What is the meaning of symbol '$' in jquery?