10 PHP code snippets for working with strings. Automatically remove html tags from a string On user-submitted forms, you may want to remove all unnecessary html tags.
Doing so is easy using the strip_tags() function: Creating Your First PHP Application: Part 2. This post is the second part in a three part series covering how to build a basic web application using OOP PHP.
In part 1 I discussed the folder structure, the goals of the project and we created our first class called DB.class.php (a class to handle our common database operations). In part 2, we’ll be writing two more classes and we’ll be finishing up the “back-end” portion of this basic web application. The Plan The ultimate goal of this project is to create a basic application that allows a user to register, log in, log out, and alter their settings. Error Display Test.