Jump to content
Larry Ullman's Book Forums

Marie M

Members
  • Posts

    4
  • Joined

  • Last visited

Marie M's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- I adore your website, and just thought that there is a need to give you small feedbacks about my experience. 1) I couldn't post my html and php codes separately. 2) later, tried to add html code underneath the php code but it didn't allow me to insert anymore code to an existing one. 3) Didn't get notified about your reply. I'm very thankful for anything you do for us Larry. This forum feels like a huge rescue to me because it doesn't kick me out if I ask a question in a wrong way like other websites do. And your books are amazing!
  2. It might be working for one word but it doesn't work for the string of words. Is it supposed to work on a single word only? I apologize for not being able to post the whole code here(technical issues I guess). The idea is that you input some words separated by space. explode() converts the words to an array. Then implode() changes it back to string. after implode() happens, I need to convert the first letter of every word to uppercase. Do you think it's possible?
  3. <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <?php $string_array = explode(' ' , $_POST['words']); $array_string = implode(',<br>' , $string_array); $array_string = ucwords(strtolower($array_string)); print "<p> Alphabetized:<br><br>$array_string</p>"; ?> </body> </html>
×
×
  • Create New...