Php ile foreach diziler – array

Paylaş.

<?php

 $dizi = array(“adi” => “burhan”, “soyadi” => “karadere”);
 $i = 0;

 foreach ($dizi as $v) {
    echo “$dizi[$i] => $v.n”;
    $i++;
 }

?>

[t:tagname attr1=”value1″ attr2=”value2″]

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)