I wanted to replace a strings in a large text file .. what would be the fastest way ?!
e.g the text file contains ..
INSERT INTO `subjects` VALUES (1, 'some text here', 'some text here', 'some text here');
INSERT INTO `subjects` VALUES (2, 'some text here', 'some text here', 'some text here');
INSERT INTO `subjects` VALUES (3, 'some text here', 'some text here', 'some text here');
INSERT INTO `subjects` VALUES (4, 'some text here', 'some text here', 'some text here');
INSERT INTO `subjects` VALUES (5, 'some text here', 'some text here', 'some text here');
I wanted to replace the string " VALUES (1, " with "VALUES (" in each line ..
I'm new in PHP so any response would be much appreciated .. thanks