Posted by c0v1k on 07/15/06 23:05
//And I think the same, but when I write like this:
for ($i=1; $i<=$num_parents; $i++)
{
for ($j=1; j<$num_childs; $j++)
{
$parent[$i][$j]=$name_of_children[$j];
echo ($parent[$i][$j]); // this print is OK
}
}
for ($i=1; $i<=$num_parents; $i++)
{
for ($j=1; j<$num_childs; $j++)
{
echo ($parent[$i][$j]); //Nothing to print?!
}
}
Why is this happening, I want to use 2Dmatrix in another function is this
posibile? Sorry on my english;)
Navigation:
[Reply to this message]
|