You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
425 B
17 lines
425 B
<?php if (!defined('WORDFENCE_VERSION')) { exit; } |
|
|
|
if (!function_exists('str_getcsv')) { |
|
|
|
function str_getcsv($input, $delimiter = ',', $enclosure = '"', $escape = null, $eol = null) { |
|
$temp = fopen("php://memory", "rw"); |
|
fwrite($temp, $input); |
|
fseek($temp, 0); |
|
$r = array(); |
|
while (($data = fgetcsv($temp, 0, $delimiter, $enclosure, $escape)) !== false) { |
|
$r[] = $data; |
|
} |
|
fclose($temp); |
|
return $r; |
|
} |
|
|
|
} |