load_remote_data()

Load remote JSONP data from URL. The JSON remote data must be an array of of “id”, “text” pair.

For example:

[
   {
      "id":"1",
      "text":"BOBA FETT"
   },
   {
      "id":"2",
      "text":"R2D2"
   },
   {
      "id":"3",
      "text":"JARJAR BINKS"
   }
]

Signature:

public function load_remote_data(URL $url )

Parameters:

  • $url: the remote file that contains the data.

No related content found.

Tags: , ,

PHP Autocomplete
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.