how to read a php array from php file in python
<p>lets say we want to make a python config reader from php.</p>

<p>config.php</p>

<pre><code>$arr = array(
    'a config',
    'b config',
    'c config =&gt; 'with values'
)

$arr2 = array(
    'a config',
    'b config',
    'c config =&gt; 'with values'
)
</code></pre>

<p>readconfig.py</p>

<pre><code>f = open('config.php', 'r')
// somehow get the array then turns it into pythons arr1 and arr2

print arr1
# arr1 = {'a config', 'b config', 'c config': 'with values'}

print arr2
# arr2 = {'a config', 'b config', 'c config': 'with values'}
</code></pre>

<p>is this possible in python ? </p>
