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. |
|