How can I split a list with multiple delimiters?
Posted
by Rob
on Stack Overflow
See other posts from Stack Overflow
or by Rob
Published on 2010-06-16T07:33:21Z
Indexed on
2010/06/16
7:52 UTC
Read the original article
Hit count: 153
php
Basically, I want to enter text into a text area, and then use them. For example
variable1:variable2@variable3
variable1:variable2@variable3
variable1:variable2@variable3
I know I could use explode to make each line into an array, and then use a foreach loop to use each line separately, but how would I separate the three variables to use?
© Stack Overflow or respective owner