backward.php
11 years ago
get_file_curl.php
11 years ago
get_taxonomies_by_object_type.php
11 years ago
import_custom_meta_box.php
11 years ago
is_exists_term.php
11 years ago
pmxi_ctx_mapping.php
11 years ago
pmxi_findDuplicates.php
11 years ago
pmxi_functions.php
11 years ago
pmxi_insert_attachment.php
11 years ago
pmxi_insert_post.php
11 years ago
pmxi_json_to_xml.php
11 years ago
pmxi_recursion_taxes.php
11 years ago
reverse_taxonomies_html.php
11 years ago
str_getcsv.php
11 years ago
wp_delete_attachments.php
11 years ago
wp_redirect_or_javascript.php
11 years ago
str_getcsv.php
18 lines
| 1 | <?php |
| 2 | if ( ! function_exists('str_getcsv')): |
| 3 | /** |
| 4 | * str_getcsv function for PHP less than 5.3 |
| 5 | * @see http://php.net/manual/en/function.str-getcsv.php |
| 6 | * NOTE: function doesn't support escape paramter (in correspondance to fgetcsv not supporting it prior 5.3) |
| 7 | */ |
| 8 | function str_getcsv($input, $delimiter=',', $enclosure='"') { |
| 9 | if ("" == $delimiter) $delimiter = ','; |
| 10 | $temp = fopen("php://memory", "rw"); |
| 11 | fwrite($temp, $input); |
| 12 | fseek($temp, 0); |
| 13 | $r = fgetcsv($temp, strlen($input), $delimiter, $enclosure); |
| 14 | fclose($temp); |
| 15 | return $r; |
| 16 | } |
| 17 | |
| 18 | endif; |