Thread:Extension talk:EmailDomainCheck/This is just what i need./reply (2)

I got this error using the array...

PHP Parse error: syntax error, unexpected 'in_array' (T_STRING), expecting '('

relating to the line

if in_array($host,$wgEmailDomain){

Grateful for any ideas...