title: Set a PHP object global?
body: <p>I just started switching my project form the mysql to PDO. In my project a new PDO Object is created more or less right a the beginning of the programm. </p>
  
  <pre><code>$dbh_pdo = new PDO("mysql:host=$db_url;dbname=$db_database_name", $db_user, $db_password);
  </code></pre>
  
  <p>Now I would like to use this handler (is that the correct name?) in some functions and classes. Is there a way to make objects global just like variables or am I trying something unspeakably stupid, because I couldn't find anything when searching the web ...</p>