well, you could join the array to string...

example:
$dirplus=join($dirplus,chr(10))

and then you can use instr on it.
_________________________
!

download KiXnet