Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Give small demo of writting OOP in PHP-mysql.



Give small demo of writting OOP in PHP-mysql...

Answer / prakash1991

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

Post New Answer

More PHP Interview Questions

Which character is used to match exactly one character?

0 Answers  


Can age be a variable?

0 Answers  


what is interface in java.

4 Answers  


What are the functions used in php?

0 Answers  


Which function would you use to determine the length of a string in php?

0 Answers  


List data types in PHP?

0 Answers  


write a program to print [123] [456] [789] note : braces also need to be printed

1 Answers   Net Solution,


how to get server date and time?

10 Answers  


what are the differents between 'action' and 'target' in form tag?

3 Answers  


Write down the code for save an uploaded file using php?

0 Answers  


How to check an element is exists in array or not in php?

0 Answers  


Starting or restarting a computer is called

0 Answers  


Categories