Skip to content
pontikis.net
  • Blog
  • WordPress
  • Labs
  • About
  • Toggle website search
Search this website
Menu Close

user input

  1. Home>
  2. Blog>
  3. user input>
Read more about the article Sanitize User Input Text with PHP
Credits

Sanitize User Input Text with PHP

  • Post author:Christos Pontikis
  • Post published:April 12, 2015
  • Post category:Web Development
  • Reading time:2 mins read

When you prompt user to input text (e.g. username, lastname etc), you may use Regular expressions to sanitize User Input, for example: allow space, any unicode letter if(preg_match("/[^40pL]/u", $term)) {…

Continue ReadingSanitize User Input Text with PHP
Read more about the article How to find whether a variable is positive integer with PHP
Credits

How to find whether a variable is positive integer with PHP

  • Post author:Christos Pontikis
  • Post published:August 29, 2013
  • Post category:Web Development
  • Reading time:2 mins read

PHP is_numeric() is useful to find whether a variable is a number or a numeric string. How you can check if a variable is an integer? You may use the…

Continue ReadingHow to find whether a variable is positive integer with PHP

Categories

Archives

NewsLetter

Click here to subscribe to our free email newsletter.
Unsubscribe anytime with a click.

LIKE OUR PAGE!


Say Hello to Gutenberg with my new Free WordPress Plugin Boilerplate for Developers!

Star it on Github!


  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Contact
  • Privacy
  • Terms
© Christos Pontikis 2013 - 2025
Close Menu