Posts

Showing posts with the label Interview Questions and Answers

Latest CodeIgniter interview questions and answers

Image
  Are you looking jobs in CodeIgniter? Then you are at the right place. We provide you with the best CodeIgniter interview Question and Answers in this article blog. CodeIgniter is an open-source software rapid development web framework, for use in building dynamic web sites with PHP. CodeIgniter is loosely based on the popular model-view-controller (MVC) development pattern. There are numerous leading companies that offer lots of job positions in CodeIgniter like PHP Developer with CodeIgniter Frame work, Senior PHP Developer, Backend Developer CodeIgniter etc. Q1. Explain Codeigniter Architecture? CodeIgniter is designed to deliver maximum performance in less time within a clean environment. To achieve this, each developing process is designed in a simplified way. From technical point of view it is dynamically instantiation (libraries are loaded on request which makes it light-weighted), loose coupling. (components rely very less on each other) and component singularity (each class a

Function Overloading And Overriding In PHP

Image
  Function overloading and overriding is the Object Oriented Programming feature in PHP. Function overloading means multiple function have the same name but different parameters. But in case of function overriding, more than one functions will have same method signature and number of arguments. PHP doesn’t support function overloading directly like other languages such as C++, JAVA etc. But we can overcome this issue with using the PHP magic method __call(). So let’s see how overloading and overriding in PHP works. Function Overloading In PHP Function overloading contains same function name and that function performs different task according to number of arguments. Example <?php class Shape { const PI = 3.142 ; function __call($name,$arg){ if($name == 'area') switch(count($arg)){ case 0 : return 0 ; case 1 : return self::PI * $arg[0] ; case 2 : return $arg[0] * $arg[1]; } }