robert_gsfame Posted December 2, 2009 Share Posted December 2, 2009 It's easy to count string length in textarea as we can use strlen $message=$_POST['message']; $length=strlen($message); ---------> to count total string But if i want to count total <br> in textarea, can i do that?? $message1=$_POST['message']; $count=substr_count($message1,'<br>') i dont think it would be correct thanks Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted December 2, 2009 Author Share Posted December 2, 2009 sorry should be $count=substr_count($message1,"\n"); ;D ;D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.