## How to Install, Uninstall & Remove phpMyAdmin – Ubuntu

How to install, uninstall and remove phpMyAdmin from Ubuntu. phpMyAdmin is a very popular MySql Administration tool used my million of developers.

## Palindrome Program in PHP – Check Whether a Number is Palindrome or Not

Write a program to check whether a number is palindrome or not using php code. How to solve this problem.

## How to Reverse a Number in PHP

How to reverse a number using PHP code. This question is asked by one of our blog follower on webrewrite facebook page.  In this tutorial, We’ll learn how to reverse a number by creating our own custom method.

## Program to Search an Element in an Array

Write a program to search an element in an array. Given a sorted array, how do you search an element in an array. Think for a moment how do you solve this problem.

You can use multiple approaches to find the solution of this problem. But try to solve this problem in minimum time complexity.

## Find the Second Largest Number in an Array

Write a program to find the second largest number in an array. Given an unsorted array, we have to write a code to find the second largest number in an array. Also, we need to focus on time complexity. As the time complexity of an algorithm is very important in terms of an interview.

For example – Let’s take an array.

Input – arr[] = { 4, 1, 5, 2, 8, 0, 3, 55}

Output – 8

The second largest element in this array is 8.  Think for a moment, how do you find the second largest number in an array?  There are multiple ways to solve this problem. Which approach you prefer and why?

In this tutorial, we cover following things –

• How to find the second largest number in an array using sorting.
• C program to find the second largest number in an array.
• C++ program to find the second largest number in an array.
• PHP code to find the second largest number in an array.

## Singleton Design Pattern in PHP

In this tutorial, You’ll going to learn what is singleton design pattern, Why and when to use this design pattern in your code.

Singleton Design Pattern

In Singleton Design Pattern, we ensure a class has only one instance and that instance can be accessed globally. The Singleton design pattern restricts the instantiation of a class to one object.

## PHP Objective Practice Questions (MCQ) – Set 2

PHP objective practice questions for interviews. These output questions test how well you understand PHP and it’s programming methodology.

## PHP Code – Find First Non-Repeated Character in a String

Given an input string, Write a PHP code to find the first Non-repeated character in a string. Suppose an input string is webrewrite, the first non-repeated character in this string is b.

## Swap Two Numbers in PHP – Explain with Code Examples

Write a PHP script to swap two numbers. In this tutorial, we are going to write a code to swap two numbers in PHP.

There are multiple approaches by which you can swap two numbers.

i) We can swap two numbers using third or temp variable.

ii) We can swap two numbers without using third variable.

## How to Check Memory Usage by PHP Script

Have you ever checked, How much memory your PHP script takes when it executes.  In this tutorial, We’ll learn how to check memory usage by PHP script.

To check memory usage, PHP provides an inbuilt function memory_get_usage(). This function returns the amount of memory allocated to a PHP script.