Hello all,
Here is something goofy, I am trying to remove the last character from a string so I use this method:
This is the output
it ends at 01. I want to recursively go through $test and get rid of the last character, what is the best way to do it?
Thanks for the read,
timgerr
-How important does a person have to be before they are considered assassinated instead of just murdered?
So there you go! You're the retarded offspring of five monkeys having butt sex with a fish-squirrel! Congratulations!
Here is something goofy, I am trying to remove the last character from a string so I use this method:
Code:
$test = '012345678';
while($test){
echo $test . '<br/>';
$test = substr($test,0,-1);
}
Code:
012345678
01234567
0123456
012345
01234
0123
012
01
Thanks for the read,
timgerr
-How important does a person have to be before they are considered assassinated instead of just murdered?
So there you go! You're the retarded offspring of five monkeys having butt sex with a fish-squirrel! Congratulations!