Training, Open Source computer languages

PerlPythonMySQLTclRubyC & C++LuaJavaTomcatPHPhttpdLinux

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Related technical and longer articles
An overview of PHP String functions
Analysing incoming data lines
Nasty Characters in Web Applications
Pattern Matching - a primer on regular Expressions
Web Page and HTML Spell Checker
Tips and short articles on this subject
Regular expression for 6 digits OR 25 digits
Do not SHOUT and do not whisper
Short and sweet and sticky - PHP form input
A taster PHP expression ...
Ignore case in Regular Expression
Regular Express Primer
PHP Regular expression to extrtact link and text
Date conversion - PHP
Looking ahead and behind in a Regular Expression
Evaluating arithmetic expressions in configuration files
How similar are two words
Don't expose your regular expressions
Robust PHP user inputs
PHP - dividing a string up into pieces
The fencepost problem
Converting between acres and hectares
Running a Perl script within a PHP page
Splitting the difference
PHP Magic Quotes
the array returned by preg_match_all
PHP and natural sorting
Here documents
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
String Handling in PHP - module H107
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
bustimes.php   Using PHP to format data (timetable in this example)
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?
stickform.php   Stick Fields and Input Validation
toke.php4   String tokenising - strtok, implode, explode
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
Strings.
Strings - in variables and literals.
String functions - an introduction.
Low-level functions.
Higher level functions.
Matching, extraction and replacement functions.
String operations.
String cleansing.
Formatting data into a string - sprintf.
Functions for formatting web pages.
Low-level string manipulation - strpos and friends.
Splitting up a string.
Regular expressions.
What flavour of 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.


© WELL HOUSE CONSULTANTS LTD., 2008: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho