Call by reference in php with example

Let's understand the concept of call by reference by the help of examples. variable $str is passed to the adder function where it is concatenated with 'Call By Reference' string.

Read More
Find the Largest Number in an Array using php

Example  for getting largest number in an array

Read More
How to find minimum value of an array

It's very simple to find the minimum value of an array using foreach loop. Create an array with some numeric value. Now create a temporary variable $temp in which stored array’s first index’s value i.e 45.

Read More
Exception handling in php

Exception handling is used to change the normal flow of the code execution if a specified error (exceptional) condition occurs. This condition is called an exception. PHP has an exception model similar to that of other programming languages.

Read More
Explode string by last occurrence and get first part

Some of the cases we need to split any string or it may be my URL to split. Now I am explaining to you, how to explode the string by the last occurrence at getting the first part of the string in a single line. This who;e process will be done using Explod

Read More
Remove a specific element from an array PHP

In this tutorial, you will learn two PHP unset() and array_search() methods to remove specific array elements.

Read More