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

  • cPanel/WHM Cron: Delete Backups Older Than 30 Days
  • Docker on Amazon Lightsail (Quick Install)
  • Get Noticed! Theme: Changing the Share Bar Icons
  • Hacking Amazon Dash Buttons
  • Using Google Fonts with the Get Noticed! Theme

Categories

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

Recent Comments

  • bob on Docker on Amazon Lightsail (Quick Install)
  • Ivan on Force Non-WWW URL in WordPress
  • Nabil on Force Non-WWW URL in WordPress
  • Manny Fu on Configure php5-mcrypt with php5-fpm (Ubuntu 14.04)
  • Marco Altomonte on Hacking Amazon Dash Buttons