Chaitanya Lakshmi
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook

Consider the following array, called $multi_array. How would the value cat be referenced within the $multi_array array?

2/27/2012

1 Comment

 
<?php
$multi_array = array("red",
"green",
42 => "blue",
"yellow" => array("apple",
9 => "pear",
"banana",
"orange" => array("dog",
"cat",
"iguana")
)
);
?>


  • $multi_array['yellow']['apple'][0]
  • $multi_array['blue'][0]['orange'][1]
  • $multi_array[3][3][2]
  • $multi_array['yellow']['orange']['cat']
  • $multi_array['yellow']['orange'][1]
  • I don’t know
Answer:
$multi_array['yellow']['orange'][1]

1 Comment
Sai
12/17/2012 01:48:43 pm

Will You Please Explain how it should comes

Reply



Leave a Reply.

    Author

    Write something about yourself. No need to be fancy, just an overview.

    Archives

    February 2012

    Categories

    All
    General
    Krds
    Phponweb

    RSS Feed

Powered by Create your own unique website with customizable templates.