PHP array_map() with  multiple callbacks?

PHP array_map() with multiple callbacks?

We can pass multiple Callback function to array_map with use of anonymous function , just pass the anonymous function as...

php-mysql - 7 years ago 1 minute read

Increment / Decrement Operators in PHP ?

Increment / Decrement Operators in PHP ?

Increment and Decrement Operators are common in many Languages, Increment Operator is represented by ++ Decrement Operator is represented by...

php-mysql - 7 years ago 1 minute read

Get image height and width PHP ?

Get image height and width PHP ?

We can easily extract image information from the Image URL using PHP's predefined function called getimagesize() I Use this function...

php-mysql - 7 years ago 1 minute read

Password Hashing Functions in PHP 5.5

Password Hashing Functions in PHP 5.5

The password hashing API provides an easy to use wrapper around crypt() to make it easy to create and manage...

php-mysql - 7 years ago 1 minute read

Nested Menu categories with single MySQL query using PHP?

Nested Menu categories with single MySQL query using PHP?

Today I am gonna write about Nested Menu Categories with Single MySQL Query, Here I will show you how to...

php-mysql - 7 years ago 1 minute read

PHP Email Sending Script ?

PHP Email Sending Script ?

Below Script is using PHP's mail function to send emails.

php-mysql - 7 years ago 1 minute read

Validate Multiple Phone numbers Comma Separated with PHP?

Validate Multiple Phone numbers Comma Separated with PHP?

$str = "9703132428,123456789,1"; // convert string to array $numbers = explode(',', $str); // remove empty items from array $numbers =...

php-mysql - 7 years ago 1 minute read

php explode at capital letters?

php explode at capital letters?

You can explode a string at capital letters with preg_split function, see the below example $string = 'HelloWorld'; // ?=[A-Z]...

php-mysql - 7 years ago 1 minute read

8 functions should know for PHP newcomer ?

8 functions should know for PHP newcomer ?

Function 1 : array_rand Get a random variable in an array. $sites = array ("google.com","Bing", "yahoo.com", "php.net", "apple.com"); $k =...

php-mysql - 9 years ago 1 minute read