Browsing Category
PHP
PHP: Hypertext Preprocessor is a general-purpose programming language originally designed for web development. It was originally created by Rasmus Lerdorf in 1994; the PHP reference implementation is now produced by The PHP Group.
PHP array_udiff() Function Example
PHP array_udiff() is an inbuilt function that compares the values of two or more arrays and returns the differences. The array_udiff() function uses the user-defined function to compare the values. The function compares the values of two…
PHP array_product: How to Calculate Product of an Array
PHP array_product() is an inbuilt function and is used to find the products of all the items in the array.PHP array_product()
PHP array_product() is an inbuilt function that calculates and returns the product of an array. The…
PHP strtok Function Example | strtok() Function Tutorial
PHP strtok() is an inbuilt function that splits the string into smaller strings (tokens). The strtok() splits a string (str) into smaller strings (tokens), with each token being delimited by any character from the token. That is if you have…
PHP array_reverse() Function Example | How To Reverse Array In PHP
PHP array_reverse() Function Example | How To Reverse Array In PHP is today's topic. The array_reverse() function returns an array in the reverse order. We can use the PHP array_reverse() function to reverse the order of the array elements.…
PHP ksort() Function Example | How To Sort Array By Key in PHP
PHP ksort() is an inbuilt function that sorts the associative array in ascending order, according to the key. It sorts an array by key, maintaining the key to data correlations. The function is useful mainly for the associative arrays. One…
PHP sort: How to Sort an Array In PHP
PHP sort() is an inbuilt function that deals with sorting arrays, and this document exists to help sort it all out. The items in the array can be sorted in alphabetical or numerical order, descending or ascending. The sort() function sorts…
PHP strcmp: How to Compare Two Strings in PHP
During any programming, you will always get situations where you need to compare values with each other, and if the values are boolean or integers, then the comparison is simple.
But if you want to compare strings or parts of strings,…
PHP str_split: How to Split the String in PHP
The str_split() function splits the given string into smaller strings of the length specified by a user and stores them in the array and returns an array.PHP str_split()
PHP str_split() is an inbuilt function that splits a string into…
PHP str_repeat() Example | str_repeat() Method Tutorial
PHP str_repeat() is an inbuilt function that repeats a string a specified number of times. The str_repeat() function is used to repeat the string, the specified number of times. The str_repeat() function is used to create the new string by…
PHP Class Example | Basics Of Class In PHP Tutorial
PHP Class Example | Basics Of Class In PHP Tutorial is today's topic. Class is a programmer-defined data type, which includes the local functions as well as the local data. You can think of a class as the template for making many instances…
PHP Objects Example | Object In PHP Tutorial
PHP Objects Example | Object In PHP Tutorial is today's topic. PHP is an object-oriented language, although it does not have to be used as one since most PHP functions are not object-oriented. In object-oriented programming, the class is…