PHP implode function explained

PHP implode() function joins all the elements of an array with the provided joiner string/character and returns a string. In this function, we pass 2 parameters i.e. joiner, array. Unlike PHP explode function, it doesn’t have any 3rd parameter. joiner optional A character or string that is placed between the …

PHP explode function explained

The explode function in PHP is very useful in developing any web application or website. In this article, I will explain the explode function and give you real-life example. PHP explode() explode() function splits/break a word into an array based on the separator provided. separator required A character or string …

PHP Uppercase & Lowercase

In this article, I will show you how to uppercase or lowercase a string in PHP. First of all, let’s see why is it required. Why are PHP Uppercase & Lowercase functions required? PHP uppercase or lowercase is required to achieve the following: To display data uniformly on webpage no …

How to create & call global PHP functions in CodeIgniter

We occasionally need some common global functions during our development. In core PHP, we can create a file, say functions.php (don’t confuse it with wordpress functions.php). We can include this file in any other file to access its functions. But, CodeIgniter is a MVC framework and it follows Object-oriented programming. …