php transform associative array to array
$array = array_values($array);
php transform associative array to array
$array = array_values($array);
array associativo php
<?php
/*
There are 3 Types of array in php
1. Indexed arrays - Arrays with a numeric index
2. Associative arrays - Arrays with named keys
3. Multidimensional arrays - Arrays containing one or more arrays
This is the second one - Associative arrays
*/
$age = array("Samy"=>"35", "Naveen"=>"37", "Amit"=>"43");
echo "Mr.Samy is " . $age['Peter'] . " years old.";
?>
associative array php
// Associative Array in PHP
/******** ARRAY TYPES ************************************************
There are basically 03 Types of array in php
1. Indexed arrays => Arrays with a numeric index
2. Associative arrays => Arrays with named keys
3. Multidimensional arrays => Arrays containing one or more arrays
***********************************************************************/
//EXAMPLE
//This is the second one - Associative arrays
$age = array("Peter"=>"35", "Naveen"=>"37", "Amit"=>"43");
echo "Mr.Samy is " . $age['Peter'] . " years old.";
php associative array
Array
(
[email] => [email protected]
[password1] => chess
[passcheck1] => on
[submit] => Login
)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us