I'm just learning to program in php, and hope some of you 'programmers' out there can answer a couple of my questions...
1) What sort of limit is there on arrays? Is it memory specific? Does php impose a hard limit on the number of elements that an array can contain?
2) In the mod/quiz/view.php file, whenever I click on a Quiz, and get the screen that shows previous attempts (if any) and the attempt quiz now button (if available), the $id parameter is passed into the file (ex: http://mysite.com/mod/quiz/view.php?id=63). I understand exactly how this works ($id), and how it relates to each Quiz in the database. When you look at the code for view.php, it also allows you pass in the $q parameter instead of the $id parameter. I also completely understand how this works ($q), and how it relates to each Quiz in the databse. My question is this... WHEN is the $q parameter used? Where would I be coming from in Moodle, that would use $q instead of $id? In all cases that I can find, Moodle always passes the $id into view.php.
Thanks