note 19735 added to ref.fdf

From: Date: Sat, 09 Mar 2002 01:26:25 +0000
Subject: note 19735 added to ref.fdf
Groups: php.notes 
Request: Send a blank email to php-notes+get-27541@lists.php.net to get a copy of this message
function parse($file) { if (!preg_match_all("/<<\s*\/V([^>]*)>>/x", $file,$out,PREG_SET_ORDER)) return; for ($i=0;$i<count($out);$i++) { $pattern = "<<.*/V\s*(.*)\s*/T\s*(.*)\s*>>"; $thing = $out[$i][1]; if (eregi($pattern,$out[$i][0],$regs)) { $key = $regs[2]; $val = $regs[1]; $key = preg_replace("/^\s*\(/","",$key); $key = preg_replace("/\)$/","",$key); $key = preg_replace("/\\\/","",$key); $val = preg_replace("/^\s*\(/","",$val); $val = preg_replace("/\)$/","",$val); $matches[$key] = $val; } } return $matches; } -- http://www.php.net/manual/en/ref.fdf.php http://master.php.net/manage/user-notes.php?action=edit+19735 http://master.php.net/manage/user-notes.php?action=delete+19735 http://master.php.net/manage/user-notes.php?action=reject+19735

« previous php.notes (#27541) next »