The text processing facilities in PHP are wide ranging. Functions are provided for all the common functionality (high-level and low-level) that's required by most users, and for much more besides. We have a saying in PHP Ð "There's a function to do that" Ð and nowhere does it apply more than in text processing.
This topic is presented on public course
PHP Programming
Examples from our training material
| extrawords | Extra words for spell checker |
| myform.php | Robust, sticky form demo with field validation |
| mystdinc.inc | Include file for sticky fields demo |
| pmoffs.php | Capturing regular expression offsets |
| regex.php4 | Regular expression - validating an email address |
| s1.php4 | Single and double quoted strings |
| s2.php4 | Character string as an array |
| s3.php4 | String cleansing with functions such as strspn |
| secdo.php4 | Convert seconds to minutes and seconds |
| sfex.php | Demo of sticky fields and security |
| shunt.php | Evaluting BODMAS expression using MySQL cell tables |
| spell.php | Spell Checker |
| sprint.php4 | Formatting with sprintf |
| stdist.php | Search - do two words look or sound the same? |
| toke.php4 | String tokenising - strtok, implode, explode |
More web pages on this subject
Regular Expressions in PHP
Specialist books
Opentalk forum discussions related to this topic
Removing last character of a stringRegular exressions in PHPRegular Expression ProblemQuickie on preg matchPHP eregHow long can a string beCounting character groups in a stringAdding spaces to a stringProducing a list of namesData becoming corrupted
Pictures
String overview - Form to variable to SQL ... to variable to HTML
"There's a function to do that" - answer to all PHP questions?
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Review of the fundamentals.
Formatting strings.
String cleansing.
Low-level string manipulation.
Tokenizing a string (explode).
Regular expressions.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 600 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.