Change all photo names with multiple updates

hi allI changed the photo name for each record and it worked fine, but how do I change all the photo names according to the time of editing one by one?
I set it in table options > multi-update page > checklist ( multiple_update)Row_updating script (running well)

$id = $rsnew["id"];
$name = $rsnew["name"];
$point = '.';

// 1. Rename photo
$ext = substr(strtolower(strrchr($rsnew["photo"], ".")), 1);
$new1 = $customer_id.$name.$point.$ext ;

if ($rsnew["photo"] != "") {
$rsnew["photo"] = "$new1" ;
}

Thank you

You may split the $rsnew[“photo”] by comma into an array and then loop through it.

maybe you can give an example?
thanks

You may learn from: