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!

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

Member Avatar for diafol

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 for diafol

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.