title: What is the best way to get config variables into a class in php 5?
body: <p>This is for my DB class. I am new to OO, been a procedural lad for some time, so I'm still a bit murky.</p>
  
  <p>My first idea was using a bunch of setter functions/methods.. but after writing a whole bunch, I thought about using PHP's define function, like so.</p>
  
  <pre><code>define('MYSQL_USERNAME', 'jimbo');
  </code></pre>
  
  <p>Is this an accepted practice? What is the best practice? Should I really clutter my class with a bunch of setter functions (I am currently the only developer using these classes). What are your solutions?</p>
  
  <p>Thank you!</p>