preg_match type split

P

Paul Lautman

I have the following string in a variable:

'\074a href="" onClick="pl_go(64);return false;">James T Kirk\074/a>',
'\074a href="" onClick="pl_go(64);return false;">thecaptain\074/a>',
'\074a href="" onClick="pl_go(64);return
false;">[email protected]\074/a>'

(there are 3 newlines in there).
Is there a simple (possibly regex?) way to split this out to an array to end
up like:

elem[0] = 64
elem[1] = 'James T Kirk'
elem[2] = 'thecaptain'
elem[3]= '(e-mail address removed)'

TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top