title: Problem to autocomplete JQueryUI+PHP+MSSQL
body: <p>I keep practicing in PHP programming with MSQQL, only now, I want to generate a "textbox" with "autocomplete" to perform searches, I already get the data that I want to show according to the search criteria, but just when I try to return it by the "json_encode", it disappears and does not I see where I can follow up ...</p>
  
  <p>This es mi code to "JQueryUI":</p>
  
  <pre><code>    &lt;script&gt;
          $(document).ready(function(){
              $('#seeker').typeahead({
                  source: function(query, result) {
                      $.ajax({
                          url:"appadmin_search.php",
                          method:"POST",
                          data:{query:query},
                          dataType:"json",
                          success:function(data) {
                              result($.map(data, function(item) {
                              return item;
                              }));
                          }
                      })
                  }
              });
          });
      &lt;/script&gt;        
  </code></pre>
  
  <p>This is my PHP Code (appadmin_search.php):</p>
  
  <pre><code>&lt;?php
  
      include('appadminps_internal_h.php');
  
      $employed = Employed::findAll();
      $return_arr = array();
      // $search = $_GET['term'];
      $search = $_POST['query'];
  
      $return_arr = Employed::seekerEmploy($search);
      /* $result = $employed::query($query); */
      $a = 0;
      $newArr[] = Employed::utf8_encode(array_values($return_arr));
  
      // return json_encode(array_values($return_arr),  JSON_FORCE_OBJECT);
      // echo json_encode($newArr,  JSON_FORCE_OBJECT);
      //No show errors
      $error = json_last_error();
      //Return Nothing!!!
      var_dump($newArr, $error === JSON_ERROR_UTF8);
      //No printing!!!!!
      print_r($newArr);
  
      // echo json_encode($newArr, JSON_UNESCAPED_UNICODE);
      //On this line dissapear everything!!!!
      echo json_encode($newArr, JSON_PRETTY_PRINT);
  
  ?&gt;
  </code></pre>
  
  <p>Please, somebody to help me??? Thanks a lot for everything.</p>
  
  <p>Best Regards.</p>
  
  <p>Oscar.</p>