डाउनलोड पी.डी.एफ. ई-बुक्स
PHP - Multi Dimensional Array

विवरण :

कोई विवरण नहीं है |


सोर्स कोड :

$info = array( 
"Raj" => array (
"id" => 1,
"salary" => 20000
),

"Uday" => array (
"id" => 2,
"salary" => 12000
), 

"Ravikant" => array (
"id" => 3,
"salary" => 15000
),
);

echo "Informtion of Uday: 
" ; echo "id : " . $info['Uday']['id'] . "
"; echo "salary : " . $info['Uday']['salary'] . "

"; echo "Informtion of Uday:
" ; echo "id : " . $info['Raj']['id'] . "
"; echo "salary : " . $info['Raj']['salary'] . "

"; echo "Informtion of Uday:
" ; echo "id : " .$info['Ravikant']['id'] . "
"; echo "salary : " . $info['Ravikant']['salary'] . "
";

आउटपुट :

Informtion of Uday: 
id : 2
salary : 12000

Informtion of Uday: 
id : 1
salary : 20000

Informtion of Uday: 
id : 3
salary : 15000