Mailinglisten-Archive |
Joho, On Tue, 26 Jun 2001 17:26:32 +0100 "Ralf Rapude" <info_(at)_schritt3.de> wrote: > firm.strasse="Kopernikusstr.23", > firm.ort="berlin"; > firm.tel="030/2543446"; > usw. [...] > items[strasse]="Kopernikusstrasse"; > items[ort]="berlin"; > items[tel]="030/2543446"; function parse($data) { $array = array(); for($i=0;$i<count($data);$i++) { $data[$i] = str_replace("firm","",$data[$i]); list($name,$val) = split("\.",$data[$i]); $array[$name] = $val; } return $array; } Gruss, CK http://wwwtech.de -- s s^s<DATA>se;s (([^\s]))(ord($1)%2? chr(ord($1)-5):chr(ord($1)-3))sieg;s s^s$_see; __END__ uwlsy%*Sr%kqdphv%yr%AFN4%dy%zzzyhfm3ihC*1'as'>
php::bar PHP Wiki - Listenarchive