1
0
mirror of https://github.com/limosek/zaf-plugins.git synced 2025-10-26 23:27:37 +01:00

Added doc for csv

This commit is contained in:
Lukas Macura
2017-01-30 14:06:12 +01:00
parent 6ee868cf6d
commit 0a36456b56
9 changed files with 171 additions and 99 deletions

View File

@@ -27,6 +27,7 @@ $c=fopen($csv,"r");
$header=fgetcsv($c,false,$delim);
while ($row=fgetcsv($c,false,$delim)) {
if (count($row)==1 && trim($row[0])=="") continue;
$p=get_replacements($header,$row);
$hostr=preg_replace($p["patterns"],$p["replacements"],$host);
$metadatar=preg_replace($p["patterns"],$p["replacements"],$metadata);