PHP Tutorials

String Manipulation

Many Web sites ask for a visitor’s e-mail address when he wishes to communicate with the site; obviously, this gives the site administrator a chance to respond to questions, comments, and problems. But what happens if the user mistypes his e-mail address? The site administrator has no way to respond, which may make the visitor angry because, without a response, it may appear that the person or company behind the site doesn’t care.

E-mail address verification is one of the several types of string manipulation this chapter covers. Other types include joining strings, dissecting strings, and string replacements.

This chapter teaches you the following:

How to join strings

How to split strings

How to extract a substring from a string

How to use numeric string indexes

How to replace a string within a string

How to use regular expressions for complex string manipulation

Filed under: Chapter 5 @ 6:56 pm

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress