Dealing with result sets - PHP
Luckily, we've stored database records in the dynamic array. Before we move on, a little explanation is in order here. Notice that inside the loop process we've retrieved each table field, separating them with a single blank space. Why did we do it that way? The reason is quite simple: by doing so, we can access each table field value later, by simply splitting the string of data returned by the function.
Still following the function explanation? Good, because we're almost done.
Okay, it's time to test our function. Let's show a practical example to see how it can be used.