title: Parse error: syntax error, unexpected '(', expecting T_STRING or T_VARIABLE or '$'
body: <p>The PHP function below is producing this error: Parse error: syntax error, unexpected '(', expecting T_STRING or T_VARIABLE or '$', on this line: <code>throw new ( '' . 'Illigal name for service name "' . $name . '" is given' );</code> </p>
  
  <p>Does anyone know what's wrong?</p>
  
  <pre><code>function registerService($name, $provider) {
      if (strlen( $name ) &lt; 1) {
          Exception;
          throw new ( '' . 'Illigal name for service name "' . $name . '" is given' );
      }
  
      $this-&gt;_Services[$name] = $provider;
  }
  </code></pre>
  
  <p>Thanks</p>