title: Populating a JavaScript array using PHP/MySQL
body: <p>Although I have seen this question addressed in multiple posts not only here but on other forums, I am wanting some more basic information that pertains to the task I have at hand as each programmer has slightly different needs for this particular function.</p>
  
  <p>For right now, I simply want to pull x-amount of data from my database (this is within my area of expertise as I have been working with these languages for a few years now...I also use mysqli extension) and then place that data in a JavaScript array.</p>
  
  <p>At that point, I'll display the information in the JS array to suit a number of purposes I have in mind.</p>
  
  <p>Writing standards-compliant code is important to me so I don't mind taking the time to learn the best way to accomplish these tasks.</p>
  
  <p>I have seen mentions of JSON and other techniques. I'm not looking to anything dreadfully complex here, just populating the JS array from my DB.</p>
  
  <p>Any and all help will be sincerely appreciated.</p>