View Single Post
Old 01-16-2014, 11:06 PM   #6
Luca tall
Registered User
 
Join Date: Apr 2013
Location: Chennai
Posts: 72
Examples of Associative array:
<?php

$course = array ("C++"=>"Rs.1400", "Java"=>"Rs.1600","PHP"=>"Rs.2400","Netwoking"=>"R s.3000");
echo "c++ course is" .$course['C++'];
?>

Here key= C++ = Rs 1400.
Key can either be integer or a string.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
Luca tall is offline   Reply With Quote