You can accomplish what you want by
substr($packet,0,1) = "X";
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
In reply to Re: Change a String's Element
by NetWallah
in thread Change a String's Element
by MathewM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |