title: How to create an Odata Service using PHP?
body: <p>I am using Kendo-UI, in this framework we can read the data using ODATA, JSON-P, JSON. We are successfully develop the data in JSON-P and JSON in PHP using(json_encode()). but we are unable to create ODATA using PHP. </p>
  
  <p>We should have to make the encoded data in ODATA format using PHP. Please look at the code in which we needed this. Please look below. </p>
  
  <pre><code>{field: "Status", title: "Status", width: "150px", editor: function(container, options) {
            $('&lt;input data-text-field="Name" data-value-field="Id" data-bind="value:' + options.field + '"/&gt;').appendTo(container).kendoComboBox({
      index: 0,
      dataTextField: "Name",
      dataValueField: "Id",
      filter: "contains",
      dataSource: {
          type: "odata",
          serverFiltering: true,
          serverPaging: true,
          pageSize: 20,
          transport: {
              read: "http://odata.netflix.com/Catalog/Titles"
          }
      }
                    });
                   }
                   },
  </code></pre>
  
  <p>Is there any idea to encode the data into this style "http://odata.netflix.com/Catalog/Titles?$format=json&amp;$inlinecount=allpages&amp;$callback=callback&amp;$top=20"</p>
  
  <p>Thanks </p>
  
  <p>A</p>