PHP Subtract/Remove First Character of String

Christian Stewart picture Christian Stewart · Aug 28, 2010 · Viewed 8.6k times · Source

I know this is simple, and I've done it before, but I've forgotten how to do it.

In PHP, how might I subtract or remove the first letter of a string?

For example:

FOOBAR would become: OOBAR

I think its something like $string[-1];.

Answer

Brad picture Brad · Aug 28, 2010