Friday, June 22, 2012

Get Texts or Values From HTML Select Code

header('Content-type: text/html; charset=utf-8');
echo $options = file_get_contents('options.txt');
if(!file_exists('options.txt')) {
  echo "file not exists";
}
preg_match_all('/([^>]*)<\/option>/', $options, $matches);
die('
'.print_r($matches, true).'
');

No comments:

Post a Comment