csv_to_array
5.x misc.inc | csv_to_array($csv_string) |
4.x misc.inc | csv_to_array($csv_string) |
Simple function to split a basic CSV string, trim all elements, then return the resulting array.
33 calls to csv_to_array()
- admin_display_degrees_popup_add_group in modules/
admin/ admin.degrees.inc - admin_display_degrees_popup_add_group2 in modules/
admin/ admin.degrees.inc - admin_edit_degree_form_submit in modules/
admin/ admin.degrees.inc - advise_display_popup_change_track in modules/
advise/ advise.module - advise_display_popup_change_track_non_dynamic_degree in modules/
advise/ advise.module - This is the "change track" popup we will display if the degree cannot be combined with anything else (non-dynamic).
File
- includes/
misc.inc, line 1030 - This file contains misc functions for FlightPath
Code
function csv_to_array($csv_string) {
$temp = explode(",", $csv_string);
$temp = array_map("trim", $temp);
return $temp;
}