backward.php
8 years ago
get_taxonomies_by_object_type.php
8 years ago
pmxe_filter.php
8 years ago
pmxe_functions.php
8 years ago
pmxe_render_xml_attributes.php
8 years ago
pmxe_render_xml_element.php
8 years ago
pmxe_render_xml_text.php
8 years ago
str_getcsv.php
8 years ago
wp_all_export_check_children_assign.php
8 years ago
wp_all_export_generate_export_file.php
8 years ago
wp_all_export_get_cpt_name.php
8 years ago
wp_all_export_get_export_format.php
8 years ago
wp_all_export_is_compatible.php
8 years ago
wp_all_export_parse_field_name.php
8 years ago
wp_all_export_posts_join.php
8 years ago
wp_all_export_posts_where.php
8 years ago
wp_all_export_prepare_template_csv.php
8 years ago
wp_all_export_prepare_template_xml.php
8 years ago
wp_all_export_rand_char.php
8 years ago
wp_all_export_remove_colons.php
8 years ago
wp_all_export_remove_source.php
8 years ago
wp_all_export_reverse_rules_html.php
8 years ago
wp_all_export_rmdir.php
8 years ago
wp_all_export_secure_file.php
8 years ago
wp_all_export_url_title.php
8 years ago
wp_all_export_write_article.php
8 years ago
wp_redirect_or_javascript.php
8 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; |