Turning a spreadsheet into array and loop and call a function

Posted by Anders on Stack Overflow See other posts from Stack Overflow or by Anders
Published on 2010-12-28T16:48:42Z Indexed on 2010/12/28 16:54 UTC
Read the original article Hit count: 181

Filed under:
|
|
|
|

This is related to generate groups in BuddyPress.

I have a spreadsheet with (in this case) a group name, group description and slug.

I need to grab the information from the file, turn it into an array, then loop through it and call groups_create_group() every time.

I can find that function in bp-groups.php (http://www.nomorepasting.com/getpaste.php?pasteid=35217). It tells me all the parameters you need to fill in.

I'm quite new to this and looking for how I can do this. Do you know how I can grab this information and turn it into an array? An loop it through and call groups_create_group() every time?

© Stack Overflow or respective owner

Related posts about php

Related posts about arrays