Jump to content
Larry Ullman's Book Forums

lbarcelo

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About lbarcelo

  • Rank
    Newbie
  1. Hi Larry, First of all, thanks for the book. It's being surprisingly easy to follow. I'm currently going through chapter 07 (arrays) and I was doing the excercise in "Transforming Between Strings and Array", I first created my list.html file and then on the list.php, this is what I wrote (HTML omitted): <?php //Get text from form $sorted_words = explode(' ',$_POST['words']); //Sort values sort($sorted_words); //Turn array back into a string $string_words = implode("<br />",$sorted_words); //Prints string print "<p>Alphabetized version of your text: <br />$string_
×
×
  • Create New...