All pastes #425436 Raw Edit

abyssal

public text v1 · immutable
·published 2007-04-05 14:25 UTC
rendered paste body
sort( $array ); 

foreach( $array AS $key=>$value ) {
  ( array_key_exists( (int)$key + 1 ) ) ? $next_playlist = (int)$key + 1 : $next_playlist = 0;
  $array_de_playlists[] = $key + "-" + $next_playlist;
}

print( "<pre>" );
var_dump( $array_de_playlist );
die;