In this blog post i’ll discuss what is interface, explain why you use interfaces while writing code. What’s the importance of interfaces.
Interfaces allow you to define common structure for class. You can think interface as a contract, through interfaces we lays out some rules, the classes that implement interfaces must follow those rules.
The Fibonacci sequence is the series of numbers such as 0,1,1,2,3,5,…… the next number is the sum of two previous numbers.
In Fibonacci series the first two numbers is 0,1 or 1,1 and next number is the sum of previous two numbers.
Given an unsorted array. How to find duplicates in array using PHP. These types of questions are generally asked in interviews. Sometimes interviewer allows to use in-built function sometimes not.
C Operators. C objective questions and answers on increment(++) and decrement(–) Operators. Before attempting questions let’s go through the concept quickly.
Phalcon is an open source, MVC based PHP framework. Apart from promoting MVC architecture, they offers you a lot of in-built features for faster web development such as ORM (Object Relational Mapping),Templating Engine (Volt),Events Management, Encryption, caching, Validation/Escaping/Filters etc.
Given an array of numbers from 1 to 100. The array is sorted. One number is missing from an array. You have to find the missing number from an array. There are no duplicates in an array.
To count the no. of nodes in a linked list you need to traverse the linked list and increment the count variable by 1. Loop will terminate when pointer points to NULL (means when it reaches at the end). When loop finishes, Print the value of count variable.
Yii is a very high performance PHP framework used for development of web applications. It’s free and open-source framework which follows MVC architecture.So now you might be thinking that there is many other PHP MVC framework like Laravel, Symfony, Cake, Codeigniter etc. are available why i use yii framework.The best thing about Yii’s is it’s performance. Definitely If you are making highly-scalable web application then you can’t ignore this point.
In Call By Reference method we pass the address(reference/pointer) of an object instead of it’s value. By using call by reference method no additional memory is used as we are using pointers. To pass an address we use (&) ampresand operator.
This question is asked by one of our forum user. I have set up LAMP in my Ubuntu operating system. I am using PHP version 5.3. I want to know how to install and enable curl in Ubuntu.