PHP substr_count Function | Count of Occurrences of Substring

PHP substr_count is an inbuilt String Function in PHP. It calculates the number of occurrences of a substring in another string. Also, the function provides an option to search the substring within a range in the string. In this article, we will discuss the PHP substr_count Function. Also, we will discuss a few examples of… Read more PHP substr_count Function | Count of Occurrences of Substring

PHP substr Function | Return sub-string From A String

PHP substr is an inbuilt function in PHP which returns sub-string from a string. It is a very handy function for extracting a part of the string. In this post, we learn about the PHP substr function along with various examples. Syntax substr($string, $startIndex, $stringLength); Parameters The PHP substr function expects 2 mandatory input parameters.… Read more PHP substr Function | Return sub-string From A String

MySQL Math Functions You Should Know About

In this post, we will discuss the inbuilt Mathematical Functions in MySQL. These functions are of great help while dealing with numeric data and performing mathematical calculations on them. We will discuss below some of the important MySQL Math Functions with examples. All MySQL math functions return NULL when they encounter an error. For example,… Read more MySQL Math Functions You Should Know About