Use the first part of the split [closed]

1

I would like to know if you have to use split to do just one division, for example , I have the following text: dia_24_06_18 .

I wanted you to sort by _ in the array like this:

[0] - dia
[1] - 24_06_18
    
asked by anonymous 16.12.2018 / 01:30

0 answers