in reply to Chopping the beginning of a string?
is about as fast, straight-forward, and easy to understand as i need. I would only use reverse if i needed to reverse the string ... but this is better used in conjunction with a regex (see sexeger).$str = substr($str,1);
If you would like to see a more obscure way, how about using split and join? (don't try this at work)
$str = join('',(split('',$str))[1..length($str)]);
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Chopping the beginning of a string? (4-arg)
by tye (Sage) on Oct 29, 2003 at 16:53 UTC |