Topics

PHP

PHP prev Function | Rewind Internal Pointer

PHP prev is an inbuilt function in PHP. It moves the internal pointer to the immediate previous element to the current element of the array. In this article, we will discuss the PHP prev Function. Syntax prev ($array) Parameters The function expects only one parameter. The input array is passed ...
Read More

PHP next Function | Advance Internal Pointer

PHP next is an inbuilt function in PHP. It moves the internal pointer to the immediate next element to the current element of the array. In this article, we will discuss the PHP next Function. Syntax next ($array) Parameters The function expects only one parameter. The input array is passed ...
Read More

PHP current Function | Get Current Element in Array

PHP current is an inbuilt function in PHP. It returns the value which the internal pointer is currently pointing to in an array. However, it does not increment or decrement the current pointer after returning the value. In this article, we will discuss the PHP current Function. Syntax current ($array) ...
Read More

PHP strtok Function | Tokenize a String on Delimiter

PHP strtok is an inbuilt function in PHP. It tokenizes a string into smaller parts according to the input delimiter values. It takes a string and the delimiters as input and returns a series of strings. In this article, we will discuss the PHP strtok Function. Also, we will discuss ...
Read More

PHP str_ireplace Function | Replace String with Another

PHP str_ireplace Function is an inbuilt function in PHP. It replaces all the occurrences of a string or an array of string in another string or an array of string respectively in a case-insensitive manner. In this article, we will discuss the PHP str_ireplace Function. Also, we will discuss a ...
Read More

PHP natsort Function | Sort Using Natural Order Algorithm

PHP natsort is an inbuilt function in PHP. It sorts an array using natural order algorithm which is how a normal human being would sort the array. Therefore, it does not check for the type of value for comparison. For example, in string representation 40 is less than 8 in ...
Read More

PHP html_entity_decode | Decode HTML Entities to Characters

PHP html_entitiy_decode is an inbuilt function in PHP. It converts HTML Entities back to their corresponding characters. It works the opposite of PHP htmlentities Function. In this article, we will discuss the PHP html_entity_decode Function. Note: To convert characters to HTML entities, use the PHP htmlentities Function. Syntax html_entity_decode ($string, ...
Read More

PHP strncasecmp | Compare First n Characters of String

The PHP strncasecmp is an inbuilt function in PHP. It compares first n characters of two strings. The function compares and tells us if one string is greater, smaller or equal to the other string. Also, this function is case-insensitive. Therefore, it treats lowercase and uppercase characters as the same ...
Read More

PHP str_split Function | Convert A String To An Array

PHP str_split is an inbuilt function in PHP. It converts a string into an array. Also, if you specify the length, it converts the string into sub-strings and returns them as array elements. In this article, we will discuss the PHP str_split Function. Also, we will discuss a few examples ...
Read More

PHP htmlentities Function | Characters to HTML Entities

The PHP htmlentities is an inbuilt function in PHP. It transforms all existing characters to their corresponding HTML Entities where applicable. In this article, we will discuss the PHP htmlentities Function. Also, we will discuss a few examples of using it. Note: To convert HTML entities back to characters, use ...
Read More

View All on PHP >

MySQL

MySQL INSTR | Case Insensitive Position of String in String

MySQL INSTR Function is an inbuilt function in MySQL. It finds the first position of occurrence of a substring in another string. Moreover, it performs the search in a case-insensitive manner. In this article, we will discuss the MySQL INSTR Function. Also, we will discuss a few examples of using ...
Read More

MySQL ASCII Function | Return ASCII Value of First Character

MySQL ASCII is an inbuilt function in MySQL. It returns the ASCII value of the first character of the input string to it. In this article, we will discuss the MySQL ASCII Function. Also, we will discuss a few examples of using it. Syntax ASCII (string) Parameters The MySQL ASCII ...
Read More

MySQL INSERT Function | Insert String Within a String

MySQL INSERT function is an inbuilt function in MySQL. It inserts a string within another string removing the corresponding characters from the original string. In this article, we will discuss the MySQL INSERT Function. Also, we will discuss a few examples of using it. Syntax INSERT(string, position, length, replaceString) Parameters ...
Read More

MySQL FIND_IN_SET | String Position in List of Strings

MySQL FIND_IN_SET is an inbuilt function in MySQL. It returns the position of a string in a list of string separated by commas. Also, the function performs the search in a case-insensitive manner. In this article, we will discuss the MySQL FIND_IN_SET Function. Also, we will discuss a few examples ...
Read More

MySQL FORMAT Function | Format a Number after Rounding

The FORMAT Function is an inbuilt function in MySQL. It converts a number in a format like "#,###,###.###" after rounding it to a specified number of decimal places. Also, it returns the number as a string. In this article, we will discuss the MySQL FORMAT Function. Also, we will discuss ...
Read More

MySQL FIELD Function | Get Position of Value in a List

MySQL FIELD is an inbuilt function in MySQL. It returns the index position of a value in a list of values. It compares the position of a value in a list of remaining values in a case-insensitive search. In this article, we will discuss the MySQL FIELD Function. Also, we ...
Read More

MySQL LENGTH Function | Length of String

MySQL LENGTH is an inbuilt function in MySQL. It returns the length of the input string according to a total number of bytes of the characters. Therefore, it does not ignore whether the characters are single-byte or multi-bytes. It counts a single byte character as 1 and a 2-byte character ...
Read More

MySQL CHARACTER_LENGTH Function | Length of String

MySQL CHARACTER_LENGTH is an inbuilt function in MySQL. It returns the length of the input string by counting the number of characters. Also, it ignores whether the characters are single-byte or multi-bytes. It simply counts the number of characters. In this article, we will discuss the MySQL CHARACTER_LENGTH Function. Note: ...
Read More

MySQL CHAR_LENGTH Function | Length of String

MySQL CHAR_LENGTH is an inbuilt function in MySQL. It returns the length of the input string by counting the number of characters. Also, it ignores whether the characters are single-byte or multi-bytes. It simply counts the number of characters. In this article, we will discuss the MySQL CHAR_LENGTH Function. Also, ...
Read More

MySQL RIGHT | Extract Characters from Right of String

MySQL Right is an inbuilt function in MySQL. It extracts a number of characters from a string starting from the right. In this article, we will discuss the MySQL Right Function. Also, we will discuss a few examples of using it. Also, you can read about MySQL LEFT Function. Syntax ...
Read More

View All on MySQL >

Linux

Linux Watch Command | Run Command at Regular Intervals

Watch Command in Linux is a useful command which is present in most of the Linux Based Systems. It runs a command at regular intervals and displays its output. It is useful when you have to run a command repeatedly and watch the output for any changes. For example, you ...
Read More

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 >