Hi People.
I’m having some trouble with a script I made. I’m quite new to arrays within PHP, so I wonder if someone could tell me what’s wrong with my script.
The code at the bottom, displays:
[code]ArrayArrayArrayArrayArrayArray
What i THINK it should be displaying, is:
[code]123456
Eventually, I’ll replace the ‘echo’ with a ping script, and the 1,2,3 with URLs. (just so you know what I’m aiming to do eventually).
[code=php]<?php
$variable[] = array (“1”, “2”, “3”, “4”, “5”, “6”);
for (
$counter=1;
$counter<6;
$counter++)
{
echo $variable;
}
?>
If anyone can tell me where the code is wrong, that would be very helpful, thanks!
?