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

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -