something like this maybe $foo = @(123 / 0); if(strval($foo) == ""){ print "a divide by zero error occured"; } -- Lindsay Evans. Developer, Red Square Productions. vox: 8596.4000 fax: 8596.4001 web: www.redsquare.com.au