Split into array in bash

OIFS=$IFS
IFS=”/”
DIR=($DIR)
IFS=$OIFS
echo “This is 0:${DIR[0]}”
echo “1:${DIR[1]}”
echo “2:${DIR[2]}”
echo “3:${DIR[3]}”
echo “4:${DIR[4]}”