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

Delphi change the assembly code of a running process -

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

C++ 11 "class" keyword -