If you really just want to get the first character, I'm sure substr( $str, 0, 1 ) would be sufficient
In reply to Re: What's the best way to get first character of the string?
by lestrrat
in thread What's the best way to get first character of the string?
by karmas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |