Hello,
I have a script that is echo'ing the values of a mysql query using a while. What I need to do is right before the last value is echo'd I need to write "last item".
Is there a way to do this: figure out how many array values there are then out put all but the last one, then write some text, then write the last value of the array.
Thanks in advance.
I have a script that is echo'ing the values of a mysql query using a while. What I need to do is right before the last value is echo'd I need to write "last item".
Is there a way to do this: figure out how many array values there are then out put all but the last one, then write some text, then write the last value of the array.
Thanks in advance.
Comment