title: Making php function to get data
body: <p>I am trying to collect popular keyword data by using a search engine API.</p>
  
  <p>They support Get method to receive data.</p>
  
  <p>If I send a query like this I can get pouplar keyword data.</p>
  
  <pre><code>    &lt;form action='https://openapi.example.com/OApi/RestApiSSL/NC/300010/HotKeyWord/v1   ' method='GET'&gt;
          &lt;div&gt; 
              Oauth&lt;input type='text' name='oauth_consumer_key' value='d029d563644872e08e4e2e40042b8cbceff'&gt;
          &lt;/div&gt;
          &lt;div&gt;
              category &lt;input type='text' name='category' value='daykeyword'&gt;
          &lt;/div&gt;
          &lt;div&gt;
              count &lt;input type='text' name='count' value='10'&gt;
          &lt;/div&gt;
          &lt;div&gt;
              &lt;input type='submit' value='submit'&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>What I want to do is that I want to make a php function and recieve data for every hour.</p>
  
  <p>First, I need to make PHP function.</p>
  
  <p>which php command do I have to use for sending input values and getting GET data?</p>