php - How can I split a list with multiple delimiters? -


Actually, I want to enter text in the text area, and then use them for example

< Pre> variable1: variable2 variable3 variable1: variable2 variable3 variable1: variable2 @ variable3

I know that I use each row an array, and then use each line separately To use a foreach loop, but how do I use to separate the three variables?

try preg_split


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -