This doesn't really have anything to do with variable visibility, but I
noticed that you pass one more parameter than the function takes.
<snip>
$s = $mycalread->getDateHTML($day, $daysInMonth);
function getDateHTML($day_in){
</snip>
Sorry. I actually had a typo in my retyped code. My code does have
two variables in both places
> function getDateHTML($day_in, $daysInMonth){
< some logic here >
> $ret = "<td>$busyday[$day_in]</td>";
> return $ret;
> }
Have you tried a few well placed echo var_dump()'s in your class to make
sure that $busyday really can't be seen by other parts of the class?
I was using some echo statements. I didn't know about var_dump(). I'll
begin playing with that immediately.
Thanks,
--
Michael Moore
-------------------------------
www.stuporglue.org -- Donate your used computer to a student that needs it.
www.ubuntu-utah.org -- In Utah? Interested in Ubuntu? Come join us.
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list