title: How to declare const in class and get the fields name against mailchimp list
body: <p>I am trying to get the specific fields name against mailchimp list id but i am unable to find the right solution.I am new to mailchimp and here i want to get the specific fields name like emailaddress firstname and lastname: </p>
  
  <p>My controller code looks like:</p>
  
  <pre><code>   public function getFields()
  {
      const REQUEST_URL = 'https://usX.api.mailchimp.com/3.0';
      $ch = curl_init(REQUEST_URL.$list.'/members/?fields=members.email_address','members.first_name','members.last_name');
  
      curl_setopt($ch, CURLOPT_USERPWD, 'user:' . 'xxxxxxyyyyyyzzzzz-us17');
      curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
      curl_setopt($ch, CURLOPT_TIMEOUT, 10);
      curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  
      $result = curl_exec($ch);
      $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
      $error = curl_error ( $ch );
      curl_close($ch);
  
  }
  </code></pre>
  
  <p>when i hit my url in postman it says: </p>
  
  <pre><code>                     Parse error: syntax error, unexpected 'const' (T_CONST)
  </code></pre>
  
  <p>i dont know how to define this cons outside of function anyone can guide me to the proper code from this:
  Thanks</p>