Topics

PHP

PHP array_pad Function | Pad Array to a Specified Length

PHP array_pad is an inbuilt function in PHP. It returns an array of a specified length after padding it with a specific value. However, if the original size of the array is already greater than the specified length, it does not delete any elements. In this article, we will discuss ...
Read More

PHP stristr Function | Find First Occurrence of String

PHP stristr is an inbuilt function in PHP. It finds the first occurrence of a string in another string. Also, it returns the rest of the string after the first occurrence. In this article, we will discuss the PHP stristr Function. Also, we will discuss a few examples of using ...
Read More

PHP strstr Function | Find First Occurrence of String

PHP strstr is an inbuilt function in PHP. It finds the first occurrence of a string in another string. Also, it returns the rest of the string after the first occurrence. In this article, we will discuss the PHP strstr Function. Also, we will discuss a few examples of using ...
Read More

PHP uasort | Sort Associative Array By Value Using Callback

PHP uasort is an inbuilt Function in PHP. It sorts an associative array by value using a user-defined callback function. It is very useful if we want to sort an array in a custom manner. However, unlike usort, this function preserves the original keys of the array. In this article, ...
Read More

PHP array_filter Function | Filter Array using Callback

PHP array_filter is an inbuilt function in PHP. It filters array elements using a callback function. It passes all elements of the array to a callback function. If the callback function returns false for a particular element, it deletes that element from the array. Also, it preserves the original keys ...
Read More

PHP ucfirst Function | String First Character Uppercase

The PHP ucfirst is an inbuilt function in PHP. It takes a string as the parameter and converts the first character uppercase. Also, it doesn't change other characters of the string. In this article, we will discuss the PHP ucfirst Function. Also, we will discuss a few examples of using ...
Read More

PHP lcfirst Function | String First Character Lowercase

The PHP lcfirst is an inbuilt function in PHP. It takes a string as the parameter and converts the first character lowercase. Also, it doesn't change other characters of the string. In this article, we will discuss the PHP lcfirst Function. Also, we will discuss a few examples of using ...
Read More

PHP join Function | Join Array Elements into a String

PHP join Function is an inbuilt function of PHP. It joins elements of an array into a single string. It returns a string containing elements of the array. In this article, we discuss the PHP join Function. Also, we will discuss a few examples demonstrating the usage of this function ...
Read More

PHP usort | Sort By Value Using User-Defined Function

PHP usort is an inbuilt Function in PHP. It sorts an array by value using a user-defined callback function. It is very useful if we want to sort an array in a custom manner. However, the function assigns new keys to the elements present after sorting. In this article, we ...
Read More

PHP strcmp Function | Case Sensitive String Comparison

PHP strcmp is an inbuilt Function in PHP. It compares two strings in a case-sensitive manner. Therefore, it treats lowercase and uppercase strings differently. The function compares and tells us if one string is greater, smaller or equal to the other string. In this article, we will discuss the PHP ...
Read More

View All on PHP >

MySQL

MySQL REPEAT Function | Repeat Strings

MySQL REPEAT is an inbuilt function in MySQL. It repeats a string for a specified number of times. Both the string and the number are the arguments to the function. In this article, we will discuss the MySQL REPEAT Function. Also, we will discuss a few examples of using it ...
Read More

MySQL Position Function | Position of Substring in String

MySQL Position is an inbuilt function in MySQL. It returns the position of the first occurrence of a substring in a string. However, if the substring does not exist then it returns 0. Moreover, the function performs a case-insensitive search (uppercase and lowercase characters are the same). In this article, ...
Read More

MySQL Locate Function | Position of Substring in String

MySQL Locate is an inbuilt function in MySQL. It returns the position of the first occurrence of a substring in a string. However, if the substring does not exist then it returns 0. Moreover, the function performs a case-insensitive search (uppercase and lowercase characters are the same). In this article, ...
Read More

MySQL STRCMP Function | Compare Two Strings

MySQL STRCMP is an inbuilt Function in MySQL. It compares two strings and returns 0 if both of them are the same. Also, it returns -1 if the first string is smaller than the second and returns 1 on the other way round according to the sort order. In this ...
Read More

MySQL SUBSTRING_INDEX Function | Substring By Delimiter

MySQL SUBSTRING_INDEX is an inbuilt Function in MySQL. It returns a substring before the number of occurrences of a delimiter. In this article, we will discuss the MySQL SUBSTRING_INDEX Function. Also, we will discuss a few examples of using it. Moreover, you can also go through MySQL Substring Function which ...
Read More

MySQL REVERSE Function | Reverse String

Reverse Function reverses a string and returns the result. It is an inbuilt Function which works from MySQL 4.0 onwards. In this article, we will discuss the MySQL Reverse Function. Also, we will discuss a few examples of using it. Syntax REVERSE (string) Parameters The Reverse expects only one parameter ...
Read More

MySQL LOWER Function | Convert Text to Lowercase

MySQL LOWER is an inbuilt Function in MySQL. It converts a text to lowercase in MySQL. In this article, we will discuss the MySQL LOWER Function. Also, we will discuss a few examples of using it. This function is synonymous to MySQL LCASE Function. Syntax LOWER (string) Parameters The Function ...
Read More

MySQL LCASE Function | Convert Text to Lowercase

MySQL LCASE is an inbuilt Function in MySQL. It converts a text to lowercase in MySQL. In this article, we will discuss the MySQL LCASE Function. Also, we will discuss a few examples of using it. This function is synonymous to MySQL LOWER Function. Syntax LCASE (string) Parameters The Function ...
Read More

MySQL RTRIM Function | Remove Trailing Spaces from String

RTRIM is an inbuilt Function in MySQL which removes unwanted trailing spaces from a string in MySQL. Data present in tables might not always what we expect. There can be unwanted spaces trailing the strings. RTRIM Function removes those unwanted spaces. In this article, we will discuss the MySQL RTRIM ...
Read More

MySQL LTRIM Function | Remove Leading Spaces from String

LTRIM is an inbuilt Function in MySQL which removes unwanted leading spaces from a string in MySQL. Data present in tables might not always what we expect. There can be unwanted spaces leading the strings. LTRIM Function removes those unwanted spaces. In this article, we will discuss the MySQL LTRIM ...
Read More

View All on MySQL >

Linux

Load Average | Monitor Performance of Linux System

You must have seen the three magical numbers in Linux called the 'Load Average'. In fact, all Unix based systems like Linux, MAC etc display these Numbers. Although they are not self-explanatory, it's easy to get familiar with them. In this article, we will discuss Monitoring Performance and Understanding Load ...
Read More

Anacrons Vs Crons | Setting Up Anacrons on Linux

One of the biggest weakness of using Crontab is that it assumes that your system is always on. The task will never run if the system is not powered on at that time. In this article, we will discuss another way to schedule repeated tasks using Anacrons. What are Anacrons? ...
Read More

Using Screen in Linux to Resume Sessions

Many times we need to perform a long-running task on a remote machine. The SSH connection might get disconnected due to a network connectivity issue or power failure. As a result of that, you will lose all your work as you can’t resume the session. Luckily, Linux provides a utility ...
Read More

Configuring Crontab In Ubuntu Explained

You can automate many tasks in your system or your server using Crontab in Ubuntu in order to prevent manual work. In this article, I will discuss configuring crontab in Ubuntu with examples. What is Crontab? The CRON daemon is an always running utility which executes certain commands at specific ...
Read More

View All on Linux >