Which removes what you want, but also returns it, and not the remaining string. Instead, try using substr as a lvalue:substr($string,0,2,"");
substr($string,0,2)="";
In reply to Re: Remove substring
by Ido
in thread Remove substring
by mosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |