title: How to pass an array of strings from PHP to Javascript using $.ajax()?
body: <p>I have a PHP script that retrieves names (strings) from database. I would like to pass this array to Javascript using $.ajax().
  I cannot understand how should I encode the array in PHP and then decode it in Javascript.
  Could someone give an example code for this ?
  Thanks a lot !!</p>