This tutorial covers:
- Working with Strings (including conversions and replacements)
- Working with User Inputted Strings (including removing extraneous characters)
- String formatting (including how to output parts of a string)
Ever had problems taking user input, submitting it to a database then not getting back the result you expect?
If you have, then this tutorial might make your life a whole lot easier. In this next installment of PHP Basics, Gareth takes us through some of the PHP string handling commands that can help you manage, and format, user input and database output.
You'll learn how to work with variable capitalization, input of unexpected characters that can affect your carefully constructed SQL and how to extract portions of text from a record.
Gareth has a range of skills, covering many computer and internet related subjects. He is proficient in many different languages including ASP and PHP, and is responsible for the setup and maintenance of both Windows and Linux servers on a daily basis.
In his daily web development work he uses the complete range of Macromedia software, including Dreamweaver MX, Flash MX, Fireworks MX and Director to build a number of websites and applications. Gareth has a close relationship with Macromedia, and as a member of Team Macromedia Dreamweaver, he has worked closely in the development of Dreamweaver, and was a beta tester for Dreamweaver MX.
On a daily basis he provides support for users in the Macromedia forums, answering questions and providing help on a range of different web related subjects. He has also written a number of free and commercial extensions for Dreamweaver MX, to further extend its capabilities using its native JavaScript API’s or C++.
As a web host, Gareth has worked with a range of different servers and operating systems, with the Linux OS as his personal favourite. Most of his development work is done using a combination of Linux, Apache and MySQL and he has written extensively about setting up this type of system, and also running Apache and MySQL under Windows.