On 21/08/07, nickj@svn.wikimedia.org nickj@svn.wikimedia.org wrote:
$m = array(); preg_match( '!\.(css|js)$!u', $this->mTitle->getText(), $m );
Note that $m would have been initialised on the next line, since preg_match() accepts it as a reference, and PHP will initialise variables passed by reference.
Rob Church