PHP 8.4.24 Released!

Voting

: five minus zero?
(Example: nine)

The Note You're Voting On

Rhamnia Mohamed
9 years ago
Since PHP 7.1, keys can be specified

exemple : 
<?php 
$array = ['locality' => 'Tunis', 'postal_code' => '1110'];

list('postal_code' => $zipCode, 'locality' => $locality) = $array;

print $zipCode; // will output 1110
print $locality; // will output Tunis
 ?>

<< Back to user notes page

To Top