underpatch
12-08-2010, 10:37 AM
i am starting the learning prosess and i could use a little help
string $all[]=`ls -sl`;
float $amount = size($all);
for ( $i = $amount-1; $i > -1; $i -- )
{
print ($all[$i]+" \n");
}
in the print command there is a error .... i just want to list the items that is in $all[] one at a time but it does not seem to like me pulling $i in there .... any advice ?
also is there some way i could get this to work ?
for ( $i = size($all)-1; $i > -1; $i -- )
{
}
because i would love to learn how to remove as many lines as posable early on ..
cheers :)
string $all[]=`ls -sl`;
float $amount = size($all);
for ( $i = $amount-1; $i > -1; $i -- )
{
print ($all[$i]+" \n");
}
in the print command there is a error .... i just want to list the items that is in $all[] one at a time but it does not seem to like me pulling $i in there .... any advice ?
also is there some way i could get this to work ?
for ( $i = size($all)-1; $i > -1; $i -- )
{
}
because i would love to learn how to remove as many lines as posable early on ..
cheers :)
