is it a bad idea to load into memory 160000 variables in a php script?
        Posted  
        
            by 
                user1397417
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user1397417
        
        
        
        Published on 2012-11-08T04:51:01Z
        Indexed on 
            2012/11/08
            5:01 UTC
        
        
        Read the original article
        Hit count: 166
        
im processing a large file with sentences, i only care about the lines that have english or japanese, so while im reading the file, if i find english or japanese sentence, i want to just save it in an array and after finished reading, open another file for writting and output all the sentences in the array. this would result in me setting about 160,000 variables. all strings, some short some long. just wondering if its a bad idea to for memeory to set so many values?
example line from the file: "1978033 jpn ?????????????????????"
© Stack Overflow or respective owner