PHP strlen question

前端 未结 5 1927
滥情空心
滥情空心 2021-01-23 03:14

Ok I am checking that a string is at least 4 characters long and 25 or less characters short

I tried to use strlen like this

$userNameSignupLength = strl         


        
5条回答
  •  一生所求
    2021-01-23 04:00

    With your code, it is evident that you are trying to validate a text field. You have not shared html of this code. Anyways , from my expertise i will say that you should not use &&. You should use ||. Also you should not directly use else if. You should use if for this code.

提交回复
热议问题