PHP advanced text functions: These are a few of my favourite strings

In this tutorial we look at the things that PHP can do with string variables, investigating how we can search for bits of a string, grab specific pieces out of a string and how we can split a string up into smaller bits - vital functionality if you are coding a function to manually parse a CVS file, for example.

This article is suitable for beginners to intermediate level Dreamweaver MX PHP users, but we work with some PHP functions that aren't exposed through the Dreamweaver MX environment and so will be hand coding most of the examples.

$2.79
- OR -

Overview

Table of Content:

  • String Information
  • Determining the length of a string
  • Counting instances of a character within a string
  • Quick Reference
  • Searching strings
  • Quick Reference
  • Splitting up strings
  • Quick Reference
  • Conclusion

Allan Kent

Allan KentAllan comes from Cape Town, South Africa. He has been implicated in writing for several WROX, glasshaus, Wiley and Apress publications, generally in the 'cool stuff that PHP can do' sections.

You can catch up with him at his website http://www.mediafrenzy.co.za.

See All Postings From Allan Kent >>

Reviews

Be the first to write a review

You must me logged in to write a review.