Join Kevin Skoglund for an in-depth discussion in this video Generate complex sentences, part of Easy PHP Projects: Single-Serving Sites.
- In the last movie, we generated sentences…using a random subject, a random verb,…and a random object.…In this movie, we going to make our sentences…even more complex.…The sentence template that we're going to be using…is going to be subject, followed by verb,…followed by a quantity, an adjective,…and then an object.…qty is short for quantity.…adj is short for adjective.…I just want it all to fit on one line…so it was very clear for you…what the sentence is going to look like.…So what we're really doing…is just enhancing that object…by adding the quantity and the adjective…in front of it, and we'll see some of the issues…that come up when we do this.…
So an example sentence might be…"Elvis needs three large pizzas."…Let's try it.…So we're going to be building on the work…that we did last time,…but we want to save that work and keep it separate,…so I'm going to actually do a Save As.…And we're going to save that file in our site's directory.…And this time, instead of elvisneedsawebsite…it's elvisneedsthreelargepizzas.…
- Finding and validating an IP address with PHP
- Parsing the HTTP request for browser details
- Comparing dates and times in PHP
- Randomizing data with PHP
- Styling page content dynamically
- Generating random sentences
Skill Level Beginner
1. What is My IP Address?
2. Browser Mirror
3. Is it New Years Yet?
4. Random Data and Styling
5. Random Phrase Generator
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.