I have this data:
"url" => [  [  "",  "data",  "data1"  "9462" ],
What I want is that I need to get last element of list as assignment_1 ( I need to assing last data into this variable) and the other things need to placed in assignment_2 as "data/data1".
I though it would be useful if have used loop over array list but could not figured it out.
Think that my array lenght will be changed all the time.But again, I need last data into assignmet_1 and the other into assingment_2.