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.

14 calls to csv_to_array()
course_search_display_courses in modules/course_search/course_search.module
Show the user their select of courses.
course_search_edit_course_details_form in modules/course_search/course_search.edit.inc
This form lets the user edit the course's syllabus or rotation schedule
course_search_edit_course_details_form_submit in modules/course_search/course_search.edit.inc
course_search_get_offering_csv in modules/course_search/course_search.edit.inc
stats_report_major_counts in modules/stats/stats.module
This report shows how many students are in each major.

... See full list

File

includes/misc.inc, line 678
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;
}