$result = [
      0 =>"/uploads/20221025/d46db0a2a0023054368f91758f42b966.jpg",
      1=>  "/uploads/20221025/e2d438e19041adb139149dcc657cae4f.jpg",
      2=>  "/uploads/20221025/6f93cd64c933d0c61fbd3b7d1f95ce05.jpg"
];
$baseUrl = "http://baidu.com";
 // 使用 array_map 添加前缀 "www"
 $result2 = array_map(function($item) use ($baseUrl) {
     return $baseUrl . $item;
 }, $result);

 var_dump($result2);