splitting strings in php

Posted by JPro on Stack Overflow See other posts from Stack Overflow or by JPro
Published on 2010-03-17T17:51:05Z Indexed on 2010/03/17 18:01 UTC
Read the original article Hit count: 290

Filed under:

I have some testcases/strings in this format:

o201_01_01a_Testing_to_see_If_this_testcases_passes:without_data
o201_01_01b_Testing_to_see_If_this_testcases_passes:data
rx01_01_03d_Testing_the_reconfiguration/Retest:

Actually this testcase name consists of the actual name and the description.

So, I want to split them like this :

o201_01_01a   Testing_to_see_If_this_testcases_passes:without_data
o201_01_01b   Testing_to_see_If_this_testcases_passes:data
rx01_01_03d   Testing_the_reconfiguration/Retest:

I am unable to figure out the exact way to do this in explode in php

Can anyone help please?

Thanks.

© Stack Overflow or respective owner

Related posts about php