invvsz invvsz - 5 months ago 36
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'].