<?php $value = "This is a test string."; $length = preg_match_all('/[^ ]/' , $value, $matches); echo $length; echo "\n"; //example to filter (space) and the character i $length = preg_match_all('/[^ i]/' , $value, $matches); echo $length;
You have javascript disabled. You will not be able to edit any code.