If you want to print an element of an array, dont try to include it in your print statement like you would a string.
print("\"('$dir_subdirs[$i]','',true,true)\"\n");
should be
print("\"('
" . $dir_subdirs[$i] . "
','',true,true)\"\n");
that should work.
Jim