Gen. partnerAlgotech

Parsing and data processing in PHP

This article will discuss methods for processing data in PHP, but it is not finished yet.

|
October 15, 2017

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...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.