invvsz invvsz - 1 year ago 63
PHP Question

Preg match in expression with array

I'm getting

syntax error, unexpected '{'
in the following line:

} elseif (!preg_match('/^[a-zA-Z ]*$/',$msz['letters']) {


What am I missing here?

Answer Source

You're missing a closing ) after $msz['letters'].

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download