O'Reilly logo

Sams Teach Yourself PHP, MySQL® and Apache All in One, Fifth Edition by Julie Meloni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Working with Strings, Dates, and Time

In this chapter, you learn the following:

How to format strings

How to determine the length of a string

How to find a substring within a string

How to break a string down into component parts

How to remove whitespace from the beginning or end of a string

How to replace substrings

How to change the case of a string

How to acquire the current date and time

How to get information about a date and time

How to format date and time information

How to test dates for validity

How to set dates and times

No matter how rich your web content might be, at the heart of it is just HTML that tells the browser how to render string-based content. It is no accident, then, that PHP provides ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required