Which nicely demonstrates that getting the code correct is vastly more important than fussing over execution speed. In the context of data fetched across the interwebs any of the proposed solutions are many times faster then would have any impact on the efficacy of the script.
In reply to Re^2: remove first and last character of string - benchmarks
by GrandFather
in thread remove first and last character of string
by flieckster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |