<?php $string = '133445abcdef'; $mask = 'a'; echo strcspn ($string, $mask); // Outputs 7
You have javascript disabled. You will not be able to edit any code.