Filter non-numeric characters
December 24, 2008
Usually when creating a scraper or a simple parser we encounter data that are usually not as clean as we expected it to be. For example We should be parsing only the sale price but the label gets in the way. These codes could be useful for the purpose of filtering out unwanted characters.
Integers:
$dirty_data = [...]
Filed under: PHP, PHP & MySQL |
Comments (1)
Related Links:
