strdel
#2

PHP код:
stock strdel_ex(dest[], l[], r[]) {
    new 
lpos strfind(destltrue);
    if(
lpos != -1) {
        new 
rpos strfind(destrtruelpos);
        if(
rpos != -1) {
            
strdel(destlposrpos+1);
            return 
1;
        }
    }
    return 
0;

Пример:
PHP код:
    new str[] = "(юпрст)ывапр";
    
strdel_ex(str"("")");
    print(
str); 
Reply


Messages In This Thread
strdel - by CamperGTA - 26.05.2013, 15:33
Re: strdel - by MacMailler - 26.05.2013, 16:08
Re: strdel - by CamperGTA - 26.05.2013, 16:13
Re: strdel - by CamperGTA - 26.05.2013, 16:17
Re: strdel - by MacMailler - 26.05.2013, 16:22
Re: strdel - by AirKite - 28.05.2013, 22:14
Re: strdel - by CamperGTA - 29.05.2013, 03:02
Re: strdel - by -Stranger- - 29.05.2013, 19:35
Re: strdel - by Vinnyy - 30.05.2013, 03:41

Forum Jump:


Users browsing this thread: 2 Guest(s)