Maximum upload file size is determined by 2 settings in php.ini file. They are upload_max_filesize and post_max_size.
array_unique() function can remove the duplicate elements or values from an array. It takes an input array and returns a new array without duplicate values.
To remove the last character from a string in PHP, we can use these functions: rtrim, substr, and mb_substr.
Before going into solution we should be familiar with 3 round up functions PHP provides. floor() rounds a number DOWN to the nearest integer if necessary. ceil() rounds a number UP to the nearest integer if necessary. round() rounds a number to specified precision (number of digits after the decimal point). The precision can also be negative …
Looping through arrays to display data or to do something with data elements is a common task in PHP. In this post, I will introduce 3 ways to loop through an array.
In PHP, it is easy to convert Hexadecimal to Decimal. PHP provides hexdec() function which returns the decimal equivalent of the hexadecimal number represented by the hex_string argument.