Blog – Masonry + Sidebar

PHP

How to use array_reduce() function in php?

array_reduce() Method: As the name suggests, an array_reduce() function reduces the array to a single value by performing the given operation. The array_reduce() applies the callback function to the elements of the array and gives output as a single value.

PHP

How to use array_walk() function in php?

array_walk() Method: It applies a user-defined function to every member of an array. The array’s keys and values are parameters in the function. The array_walk() function is not affected by the internal array pointer of the array.

PHP

difference between array_merge() and array_combine() functions in php?

In this post, we will show you difference between array_merge() and array_combine() functions in PHP

PHP

How to round half up numbers in php?

In this post, this function will round the number to half a unit in php.

PHP

What’s the difference between define and const in php?

In this post, we give you the difference between const and define in PHP.

PHP

How to use cURL in php?

CURL is the library account is used to help to make the transfer data through many other protocol (as HTTP, FPT …).