Tools, FAQ, Tutorials:
Retrieving Values out of an Array in PHP
How To Retrieve Values out of an Array in PHP?
✍: FYIcenter.com
You can retrieve values out of arrays using the array element expression $array[$key]. Here is a PHP example script:
<?php $languages = array(); $languages["Zero"] = "PHP"; $languages["One"] = "Perl"; $languages["Two"] = "Java"; print("Array with inserted values:\n"); print_r($languages); ?>
This script will print:
Array with default keys: The second value: Perl Array with specified keys: The third value: Java
⇒ Data Types of Array Keys in PHP
⇐ Testing If a Variable Is an Array in PHP
2016-10-15, 1540🔥, 0💬
Popular Posts:
How To Convert a Character to an ASCII Value? If you want to convert characters to ASCII values, you...
How to add an API to an API product for internal testing on the Publisher Portal of an Azure API Man...
Where to find tutorials on Microsoft Azure services? Here is a large collection of tutorials to answ...
How to register and get an application ID from Azure AD? The first step to use Azure AD is to regist...
How to use the "@(...)" expression in Azure API Policy? The "@(...)" expression in Azure API Policy ...