Category: PHP

PHP array_values() Function

The array_values() function is used to fetch all the values from an array. Tip: The returned array will have numeric keys, starting at 0 and increase by 1. Returns an array containing all the values of an array Parameter Description array Required. Specifying an array Syntax Example Output

PHP array_key_exists() Function

The array_key_exists() function is used to check whether a specified key is present in an array or not. The function returns TRUE if the given key is set in the array. The key can be any value possible for an array index. Tip: Remember that if you skip the key when you specify an array, […]

PHP array_map() Function

The array_map() function sends each value of an array to a user-made function, and returns an array with new values, given by the user-made function. Tip: You can assign one array to the function, or as many as you like. Parameter Description myfunction Required. The name of the user-made function, or null array1 Required. Specifies […]

PHP array_column() Function

The array_column() function returns the values from a single column in the input array. array_column() returns the values from a single column of the array, identified by the column_key. Optionally, an index_key may be provided to index the values in the returned array by the values from the index_key column of the array. Parameter Description […]

How to Check UserName and Email Availability From Database using PHP and Ajax

In this tutorial, we will see a PHP script to implement username live check feature using AJAX, jQuery, and MySQL. Checking UserName and Email Address of the user on SignUp is good way to prevent duplicate content on database and several other problems. PHP, jQuery and HTML Code PHP Code (checkdata.php)

How to Load Data From Database Without Refresh Page Using Ajax and PHP

In this article, you will learn how to retrieve data from a database without refreshing the webpage. Suppose we have student table that contains an name and username and an student_info table that contains whole student information. You may also like Submit a form without using a submit button using JavaScript and How to upload image without refresh […]

PHP extract() Function

This function is used to import variables from an array into the current symbol table. It takes an associative array array and treats keys as variable names and values as variable values. For each key/value pair it will create a variable in the current symbol table, subject to extract_type and prefix parameters. Parameter Description array […]

How to Login With LinkedIn Using PHP

Linkedin is one of the most popular social networks with the huge user base. If you want to allow your website’s user to login with the social account, LinkedIn login needs to be added. LinkedIn provides various API to integrate user login system in the website. Using LinkedIn API you can let the user login […]