WorldWideScripts.net Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Miscellaneous

Stringly

— Add-On to WorldWideScripts.net

Subscribe to our feed to stay up to date!

New! Follow us as you want it!


Stringly - CodeCanyon Item for Sale

Ads

Ad: Bluehost hosting

THIS IMAGE VIDEO HAS BEEN MOVED DELETED Are you looking for an easy way to validate a user’s input? Then Stringly is for you! Are you also looking for an easy way to check if strings begin with/end with/contains a specific string? Then Stringly is for you!

Stringly helps you validate your users’ input using predefined options, which are:

  • URL
  • IP
  • EMAIL
  • ALPHANUMERIC
  • NUMERIC
  • LETTER ONLY
  • LOWERCASE
  • UPPERCASE
  • RANGE (a number between 2 numbers)
  • HEX

Examples of string placement checking:

 require('stringly.class.php'); $begins = Stringly::beginsWith('PHP is the web scripting language of choice.', 'PHP'); $ends = Stringly::endsWith('PHP is the web scripting language of choice.', 'choice'); $contains = Stringly::contains('PHP is the web scripting language of choice.', 'php'); 
More examples are found in the documentation.

Examples of string validation:

 require('stringly.class.php'); $url = Stringly::validate(Stringly::VALIDATE_URL, 'https://encrypted.google.com/search?q=hello'); $ip = Stringly::validate(Stringly::VALIDATE_IP, '221.15.154.26'); $email = Stringly::validate(Stringly::VALIDATE_EMAIL, [email protected]'); $alnum = Stringly::validate(Stringly::VALIDATE_ALNUM, 'ben445'); $num = Stringly::validate(Stringly::VALIDATE_NUM, '345345671'); $letters = Stringly::validate(Stringly::VALIDATE_LETTERS, 'hiii'); $lower = Stringly::validate(Stringly::VALIDATE_LOWER, 'specialoo'); $upper = Stringly::validate(Stringly::VALIDATE_UPPER, '290532L'); $range = Stringly::validate(Stringly::VALIDATE_RANGE, 6, 1, 20); $hex = Stringly::validate(Stringly::VALIDATE_HEX, '#00FFFF'); 
More examples are found in the documentation.

Download
Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers

Properties

Created:
15 April 11

Last Update:
N/A

Files Included:
PHP

Software Version:
PHP 5.x

Keywords

eCommerce, eCommerce, All Items, easy, input, php, prevent attack, preventing hackers, user, validate, validation