April 2026
Intermediate
1009 pages
34h 15m
English
You can create some useful applications with streams. This section gives you two suggestions that are suitable for further development.
First, let’s look at an approach to creating a text version of a web page. Although web-based browsers such as Lynx are getting better and better, in view of the fact that accessibility (accessible design) is becoming increasingly important, thinking about this project is a good idea.
How do we achieve this? With a special streams filter. The string.strip_tags filter is already quite good, but imagine we want to keep the content of <p> tags. We also want to prepare the output with htmlspecialchars(). String manipulation is then still necessary: ...
Read now
Unlock full access