Answers.Body: <pre><code>craft()-&gt;config-&gt;parseEnvironmentString($string)
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-29T20:17:51.627Z
Answers.LastActivityDate: 2015-07-29T20:17:51.627Z
Answers.UserDisplayName: André Elvan
Body: <p>I have a string in my plugin that contains environment variables. How can I parse them the same way Craft does?</p>
  
Tags: <plugin-development><environmentvariables>
Title: How can I parse environment variables in a string?
ThreadText: # How can I parse environment variables in a string?
  
  (Asked by: username_0 on 2015-07-29)
  
  I have a string in my plugin that contains environment variables. How can I parse them the same way Craft does?
  
  **Tags:** plugin-development, environmentvariables
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2015-07-29. Score: 4 | Accepted answer
  
  ```
  craft()->config->parseEnvironmentString($string)
  
  ```
  
  
  ---
  
  