PHP Solutions pp 383-415 | Cite as

Formatting Text and Dates

  • David Powers
Chapter

Abstract

We have some unfinished business left over from the previous chapter. Figure 13-1 in Chapter 13 shows content from the blog table with just the first two sentences of each article displayed and a link to the rest of the article. However, I didn’t show you how it was done. There are several ways to extract a shorter piece of text from the beginning of a longer one. Some are rather crude and usually leave you with a broken word at the end. In this chapter, you’ll learn how to extract complete sentences.

Keywords

Time Zone Format Character Complete Sentence Format String Interval Type 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© David Powers 2014

Authors and Affiliations

  • David Powers
    • 1
  1. 1.LondonUnited Kingdom

Personalised recommendations