List Headline Image
Updated by Santosh Sahu on Aug 08, 2020
 REPORT
Santosh Sahu Santosh Sahu
Owner
1 items   1 followers   0 votes   0 views

PHP Tutorial

PHP stands for Hypertext Preprocessor. It is an interpreted server-side scripting language that is used for creating dynamic and interactive web page. It is also used for developing web based software applications. PHP is an open source scripting language which makes it one of the most used language in web development. It can set cookies of a website and restrict access of some web page of your website. It can also handle forms, file I/O and interact with databases.

Source: https://www.alphacodingskills.com/php/php-tutorial.php

In PHP, associative array is used to store data in key-value pairs. It is used to hold multiple key-value pairs in a single variable.

Create an Array
An associative array can be created using array() keyword. It can be initialized at the time of creation by specifying key-value pairs within the array() keyword and separated by comma(,) or it can be initialized later by specifying value using key.