For a given dataset - In terms of memory, efficiency and readability - when it is better to use an array, and when it is better to declare multiple variables? What are the pros and cons of using each?
It is - I believe - a fundamental question in programming, and it may have different answers for different programming languages, but the focus is on the PHP point of view (especially regarding the memory management).
EDIT (Example to clarify):
If I have a user, and I want to store his username and password, should I do it in a $user array, or in two variables - $username and $password? What are the pros and cons of each approach?