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
2016-10-15, 746👍, 0💬
Popular Posts:
How to build a test service operation to dump everything from the "context.Request" object in the re...
What is json.tool? Can I use it to convert a JSON string a pretty-print format? json.tool is a speci...
How to access Request body from "context.Request.Body" object in Azure API Policy? Request body is t...
How to use the API operation 2017 version setting "Rewrite URL template"? The API operation setting ...
Where to find tutorials on Python programming language? I want to learn Python. Here is a large coll...