Results 1 to 9 of 9

Thread: Save Stats !!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,731
    Thanks
    17
    Thanked 1,082 Times in 683 Posts
    I agree with tally, although his code seems inefficient on the following part:
    PHP Code:
            line ""
            for( 
    pos 0pos elemspos++ ) 
            { 
                
    line line fgetargfilepos ); 
                if( 
    pos elems 
                    
    line line ","
            } 
                 
            array = 
    strtokline"," ); 
    You first get all elements, store them in a string, separated by , and then strtok that string on that very same ,

    You can do that directly by:
    PHP Code:
        array = [];
        for(
    pos 0pos elemspos++)
            array[
    pos] = fgetarg(filepos); 
    -some guy who actually read the code

  2. The Following 2 Users Say Thank You to IzNoGoD For This Useful Post:

    EnergY (11th April 2013),kung foo man (11th April 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •