1--TEST--
2Test strspn() function : basic functionality
3--FILE--
4<?php
5/*
6* Testing strspn() : basic functionality
7*/
8
9echo "*** Testing strspn() : basic functionality ***\n";
10
11
12// Initialise all required variables
13$str = "this is the test string";
14$mask = "htes ";
15$start = 8;
16$len = 12;
17
18// Calling strspn() with all possible arguments
19var_dump( strspn($str, $mask, $start, $len) );
20
21// Calling strspn() with three arguments and default len argument
22var_dump( strspn($str, $mask, $start) );
23
24// Calling strspn() with default arguments
25var_dump( strspn($str, $mask) );
26
27echo "Done"
28?>
29--EXPECT--
30*** Testing strspn() : basic functionality ***
31int(11)
32int(11)
33int(2)
34Done
35