Parsing and data processing in PHP
This article will discuss methods for processing data in PHP, but it is not finished yet.
This article will discuss methods for processing data in PHP, but it is not finished yet.
So temporarily just a quick sketch of the possibilities:
- Crawl character by character is a very old method that makes the code messy, but all other methods do it internally.
- Explode, splitting a string by a delimiter
- Regular expressions are the best way to handle simple strings
- Tokenizer, splits a complex string into pieces (tokens) according to regular expressions, for example this is how PHP is processed
Loading comments...