I was wondering if someone could help me out.
Im extracting a string from my database which is formatted like so 4,3,1,7,38 etc etc … its a dynamic array so it could be any number of numbers etc etc
What i need to do is extract each number and run it agains a function .. So for example each number represents a users id, i need to run each user id against a function and return a set result, so for each id i would neeed to run something like
$personsdetails = $this->random_model->get_user_details( $useridhere );
How would i go about getting each of the ids out of the array and running it over a loop to get each persons details?
Cheers
You can use explode and foreach over created array.