Chapter 10. String and Custom Functions: Better living through functions

Functions take your applications to a whole new level. You’ve already been using PHP’s built-in functions to accomplish things. Now it’s time to take a look at a few more really useful built-in functions. And then you’ll learn to build your very own custom functions to take you farther than you ever imagined it was possible to go. Well, maybe not to the point of raising laser sharks, but custom functions will streamline your code and make it reusable.
A good risky job is hard to find
The Internet startup, RiskyJobs.biz, is designed to help companies find the right people to fill their riskiest jobs. The business model is simple: for each risky job we can fill with the right candidate, we get a commission. The more successful matches, the bigger our profit.
Risky Jobs needs help improving its site’s job-search functionality. Right now, there’s a database full of risky jobs just waiting to be discovered by the right people. Let’s take a look at the Risky Jobs search form and the underlying database of available jobs.


Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access