$twister = "Peter Piper picked a peck of pickled peppers";$charset = "Peter picked a";print("The segment matching '$charset' is " . strspn($twister, $charset) . " characters long");?>