|
Posted by Bent Stigsen on 10/06/21 11:48
Paul F. Johnson wrote:
[snip]
> My main problem though is how to get data out of the array.
>
> For example
>
> echo $event['Event'][$i] . "<br />";
>
> doesn't give anything - even if I have explicity put something into the
> array (for example
>
> $event['Event'][0] = "wibble";
> $event['Event'][1] = "wobble";
> $event['Event'][2] = "fibble";
> $event['Event'][3] = "fobble";
>
> for ($i = 0; $i < 4; ++$i)
> echo $event['Event'][$i] . " ... " . $i . "<br />";
>
> displays nothing other than " ... 0-3")
>
> Is this more likely to be me or the version of php I'm using?
I've tried your example verbatim and output is fine, so I reckon it is
not your code.
I have run the same code on php versions from different major releases
(3.0.17, 4.3.9 and 5.1.2) giving exact same result, so I think it is
safe to say that it is not an issue of php version.
Sorry, I can't really say what your problem is. Perhaps your
braille-display is broken.
/Bent
Navigation:
[Reply to this message]
|