I got 2 Arrays. First one looks like this:
array(33) {
[0]=>
string(21) "sourcefile,ending_pdf"
[1]=>
string(43) "generated_pdf_preview,ending_reviewpdf"
[2]=>
string(37) "generated_jpeg_preview_000,ending_jpg"
[3]=>
string(37) "generated_jpeg_preview_001,ending_jpg"
[4]=>
string(37) "generated_jpeg_preview_010,ending_jpg"
...
}
and the other one looks like this:
array(33) {
[0]=>
string(172) "http://my_link/sourcefile.pdf"
[1]=>
string(141) "http://my_link/previewpdf"
[2]=>
string(149) "http://my_link/my_pdf_file_as_image483568346-0.jpg"
[3]=>
string(149) "http://my_link/my_pdf_file_as_image4768746-1.jpg"
[4]=>
string(150) "http://my_link/my_pdf_file_as_image6867746-10.jpg"
[5]=>
string(150) "http://my_link/my_pdf_file_as_image6867746--11.jpg"
...
}
As you can see it is possible to sort the first array but not the second because of the single digits. With asort($first_array)
I got the correct order for that array. But I need the same order for my second array. How could I do this? array_multisort($first_array, $asorted_second_array);
didnt work so far. Any tips maybe?
Regards