Hey guys,
I have a function called showAll, which has 2 arrays as it's arguments. I declared it as follows:

function showAll($dayarray, $distinctShifts)

both arguments are returned in other parts of the code, so why is it giving me missing argument errors for both of them? Please give me some possible causes. Thanks in advance!

Recommended Answers

how are you calling your function.
more code please, cannot debug your single line above.

Jump to Post

All 4 Replies

how are you calling your function.
more code please, cannot debug your single line above.

Member Avatar

how are you calling your function.

I think you have it. I would wager that it's being called :

showAll();

Fixed. Thanks ardav!

Member Avatar

ok mark as solved please. The link below the box.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.