×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Ilya A. Zhulin
Added: Sep 14, 2022 12:17 PM
Views: 4
  1.  
  2. function _getThumb($thumb_number, $path) {
  3.   $path_array     = explode('/', $path);
  4.   $last_piece     = array_pop($path_array);
  5.   $path_array[]   = '_thumb' . $thumb_number;
  6.   $path_array[]   = $last_piece;
  7.   return implode('/', $path_array);
  8. }