I have downloaded what looks like a PHP array file, and wondering if there is a python module or another way of converting/importing the array to a python dictionary. Here is a sample of the start of the PHP array file.
<?php
$legendre_roots = array();
$legendre_roots[2] = array(
-0.5773502691896257645091487805019574556476017512701268760186023264839776723029333456937153955857495252252087138051355676766566483649996508262705518373647912161760310773007685273559916067003615583077550051041144223011076288835574182229739459904090157105534559538626730166621791266197964892168,
0.5773502691896257645091487805019574556476017512701268760186023264839776723029333456937153955857495252252087138051355676766566483649996508262705518373647912161760310773007685273559916067003615583077550051041144223011076288835574182229739459904090157105534559538626730166621791266197964892168);
I would ideally like a dictionary with for example:
legendre_roots = { 2: [-0.57735,0.57735], 3: [.......]......}
Any help appreciated.
arrayis an ordered dictionary.