PDO: Multiple commands in PDO::MYSQL_ATTR_INIT_COMMAND
<p>i'm using this PDO connection:</p>

<pre><code>try{

$db=new PDO("
mysql:host=localhost;
dbname=...",
"dbu...",
"pass",
array(PDO::MYSQL_ATTR_INIT_COMMAND =&gt; "SET lc_time_names='de_DE'"));
}
catch(PDOException $e){die("Error!");}
</code></pre>

<p>Now i would like to add another init command:</p>

<pre><code>array(
PDO::MYSQL_ATTR_INIT_COMMAND =&gt; "SET lc_time_names='de_DE'",
PDO::MYSQL_ATTR_INIT_COMMAND =&gt; "SET NAMES utf8"
)
</code></pre>

<p>But it looks like that the utf8-one overwrites the first init command.</p>

<p>So i've tried this one but also without success:</p>

<pre><code>array(
PDO::MYSQL_ATTR_INIT_COMMAND =&gt; array("SET lc_time_names='de_DE'","SET NAMES utf8")
)
</code></pre>

<p>Any idea how to send more than just one init command?</p>

<p>Thanks!</p>