invvsz invvsz - 10 months ago 53
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