<pre><code>craft()-&gt;config-&gt;parseEnvironmentString($string)
</code></pre>

CC BY-SA 3.0
2015-07-29T20:17:51.627Z
2015-07-29T20:17:51.627Z
André Elvan
<p>I have a string in my plugin that contains environment variables. How can I parse them the same way Craft does?</p>

<plugin-development><environmentvariables>
How can I parse environment variables in a string?
# 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)


---

