php - Count input value of a textbox -



php - Count input value of a textbox -

i want count number of inputed value in textbox illustration value of textbox 1234567 count of value 7 want know whether inputed value less or greater or equal 7 how able in php thanks

i assume mean number of characters in input. can utilize native php function strlen http://php.net/manual/en/function.strlen.php:

if( strlen( $_post['input_name'] >= 7 ){ // since equal or greater 7 } else { // less 7 }

php

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -