PHP Text Bank
Well, honestly, this is a real problem.
So, I'm going to copy every line of text in Q.txt to 1.txt/2.txt/3.txt.
The Q.txt text format is as follows:
AJSG Blueprint Herbal Ajsv ajsm Apple machine ajsu? AJSC yellow fruit tree AJSJ Seven Stars Ladybug ajsu? AJT Blue AJTL Blue ajth spreading trouble AAGW respectfully better to obey
Requirements like the first, to divide him into two to write to 2.txt, all Chinese characters cannot have spaces behind.
Such as:
AJSG Blueprint AJSG Herb
Three words saved in 3.txt. Look like this.
Ajth Spread Trouble
Need to save to 2.txt one, 4.txt one
More than four words saved in 5.txt.
1.txt,2.txt, such as the format to be q.txt with the same, Chinese characters cannot have spaces behind
such as the 1.txt
A A-GE AA aaa work aaaa aaar? AAD-Type Aad aadk aadn te aadw qi Aadn
There is no big God help Ah, beg PHP solution, first thanked!
Reply to discussion (solution)
4?5: $str _num; @file_put_contents ($fname. ". TXT ", $tap." ". Trim ($v)." \ r \ n ", file_append);} }
But this has a premise; need to see what format your Q.txt document is encoded in! I use UTF-8 here, also is the default your Q.txt document is UTF-8 encoded; come here; you should understand;
4?5: $str _num; @file_put_contents ($fname. ". TXT ", $tap." ". Trim ($v)." \ r \ n ", file_append);} }
But this has a premise; need to see what format your Q.txt document is encoded in! I use UTF-8 here, also is the default your Q.txt document is UTF-8 encoded; come here; you should understand;
Thank you very much, problem solving! My text is UTF-8.