How values in arrays are indexed?



How values in arrays are indexed?..

Answer / Minhaj Uddin

In PHP, array indices start at 0. So if you have an array like this: nn$array = array("apple", "banana", "cherry"); The first element (index 0) is "apple", the second element (index 1) is "banana", and so on.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What are properties in php?

1 Answers  


Hello Friends,I am seeking for a job in php having 2yrs. exp.Please suggest any company openings.

1 Answers  


Tell me how is it possible to parse a configuration file?

1 Answers  


Explain the difference between session and cookies in php?

1 Answers  


Explain converting an object?

1 Answers  


What is the use of pear in php?

1 Answers  


Which is best framework for php?

1 Answers  


List some string function name in php?

1 Answers  


What language is php based on?

1 Answers  


What are magic methods?

1 Answers  


What are the different types of errors in PHP?

5 Answers  


Is php used anymore?

1 Answers  


Categories