What is the difference between associative array and indexed array?



What is the difference between associative array and indexed array?..

Answer / Shalendra Singh

An Indexed Array uses numerical keys, while an Associative Array uses string keys. In PHP, both can be accessed using their respective indexes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What are getters and setters and why are they important?

1 Answers  


How can we encrypt the username and password using PHP?

13 Answers   Avaria, HCL, TCS, Xpert,


What is the difference server side and browser side validation?

1 Answers  


What is prepare in php?

1 Answers  


How is it possible to know the number of rows returned in the result set?

1 Answers  


What is laracast?

1 Answers  


Explain the types of functions for Splitting String?

1 Answers  


What is use of preg_replace in php?

1 Answers  


What is artisan in php?

1 Answers  


1.What is application server ? 2.What is web server ? 3.Explain the process of execution of a php file ?

9 Answers   IBM,


What is meant by pdo in php?

1 Answers  


explain the changes in php version

3 Answers  


Categories