Write an efficient program to generate Prime numbers between 1 to n. Or How to print prime number from 1 to n. It is one of the most asked interview questions.
In this post, I will discuss most efficient algorithm to generate Prime Numbers. Before this let’s understand what is prime number.
What is Singleton Design Pattern.
In Singleton Design Pattern we ensure a class has one instance, and provide a global point of access to it.
How to Create Singleton Design Pattern
PHP objective practice questions for interviews. These output questions test how well you understand PHP and it’s programming methodology.
How to create drag and drop multiple file upload functionality using DropzoneJS.
Given a string you have to find first non-repeated character in a string. Suppose string is studentduniya, so the first non-repeated character is s.
How to sort string in PHP. Is there any in-built function available in PHP to sort string directly. PHP does not provide any in-built function to sort string directly.
In this post i’ll show you some of the methods through which we can perform sorting on string.
Write a MySql query find second highest salary, this is one of the most asked interview questions. To find second highest salary you can use multiple approaches. In this post i’ll show different ways to find second maximum salary of an employee.
How to check if value exists in array in PHP. PHP provides in-built function to check whether value exist in array or not. We can solve this problem by writing our own custom function as well. Let’s check php in-built as well as our own custom function.
What’s the difference between inner join and left join. As you started writing MySql query, joins can be confusing in the beginning. In this tutorial i’ll explain inner join and left join.