Tools, FAQ, Tutorials:
Retrieving All Values from an Array in PHP
How To Get All the Values Out of an Array in PHP?
✍: FYIcenter.com
Function array_values() returns a new array that contains all the values of a given array. Here is a PHP script on how to use array_values():
<?php $mixed = array(); $mixed["Zero"] = "PHP"; $mixed[1] = "Perl"; $mixed["Two"] = "Java"; $mixed["3"] = "C+"; $mixed[""] = "Basic"; $mixed[] = "Pascal"; $mixed[] = "FORTRAN"; $values = array_values($mixed); print("Values of the input array:\n"); print_r($values); ?>
This script will print:
Values of the input array: Array ( [0] => PHP [1] => Perl [2] => Java [3] => C+ [4] => Basic [5] => Pascal [6] => FORTRAN )
Â
⇒PHP Built-in Functions for Arrays
⇒⇒PHP Tutorials
2017-01-21, 1560👍, 0💬
Popular Posts:
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed des...
How to login to Azure API Management Publisher Portal 2017 version? If you have given access permiss...
Where to find tutorials on JSON (JavaScript Object Notation) text string format? I want to know how ...
FYIcenter.com Online Tools: FYIcenter JSON Validator and Formatter FYIcenter JSON to XML Converter F...
What is Azure API Management Developer Portal Admin? The Developer Portal Admin is an Azure Web port...