David Kryzaniak, LLC logo David Kryzaniak, LLC

  • About
  • Blog
  • Résumé
  • Contact

Sanitize Inputs the Easy Way in PHP

Posted on December 20, 2012 by David Kryzaniak

Sanitizing user inputs isn’t fun. It requires writing nasty Regular Expressions (RegEx) or using a ‘find/replace’ like str_replace(). Both RegEx and str_replace() work great, but I want something that’s a bit nicer to look at (and faster too). I ran

Read more ›

Posted in PHP | Tagged filter_vars, format numbers, input, PHP, sanitize, validation | Leave a reply

Recent Posts

  • Adding an API Key to your AWS SAM Deploy
  • Serverless HTML to PDF API with AWS Lambda
  • cPanel/WHM Cron: Delete Backups Older Than 30 Days
  • Docker on Amazon Lightsail (Quick Install)
  • Get Noticed! Theme: Changing the Share Bar Icons

Categories

  • AWS (5)
  • Events (1)
  • Hardware Hacks (4)
  • Linux (2)
  • Psychology (1)
  • Random (3)
  • Web (36)
    • API (2)
    • Code Snippets (2)
    • Docker (1)
    • Hacks (4)
    • IIS (1)
    • MODx (1)
    • PHP (5)
    • Responsive (2)
    • Scripts (1)
    • WordPress (15)

Recent Comments

  • David Kryzaniak on Docker on Amazon Lightsail (Quick Install)
  • Leigh on Docker on Amazon Lightsail (Quick Install)
  • Leigh on Docker on Amazon Lightsail (Quick Install)
  • bob on Docker on Amazon Lightsail (Quick Install)
  • Ivan on Force Non-WWW URL in WordPress