do you need save the array content in a file??
why not get the data from database and save into array and then works with that array??
something like this:
PHP Code:
<?php
$sql = "SELECT * FROM plan_table ORDER BY plan_id";
$rs = mysql_query($sql);
$planOptions = array();
while($row = mysql_fetch_assoc($rs))
{
// 'Plan Name' => 'Plan ID'
$planOptions[$row['plan_name']] = $row['plan_id'];
}
// the array will look like this
/* Plan Options */ // 'Plan Name' => 'Plan ID'
$planOptions = array( 'Unlimited (5/month)' => '1',
'Unlimited (50/year)' => '2',
'500 texts (1/month)' => '3',
'1500 texts (2/month)' => '4',
'4000 texts (3/month)' => '5',
'7000 texts (4/month)' => '6' // do NOT end the last one with a comma(,)
);
?>