1--TEST-- 2Test ucwords() function : usage variations - custom delimiters 3--FILE-- 4<?php 5/* Prototype : string ucwords ( string $str ) 6 * Description: Uppercase the first character of each word in a string 7 * Source code: ext/standard/string.c 8*/ 9 10echo "*** Testing ucwords() : usage variations ***\n"; 11 12var_dump(ucwords('testing-dashed-words', '-')); 13var_dump(ucwords('test(braced)words', '()')); 14var_dump(ucwords('testing empty delimiters', '')); 15var_dump(ucwords('testing ranges', 'a..e')); 16 17echo "Done\n"; 18?> 19--EXPECTF-- 20*** Testing ucwords() : usage variations *** 21string(%d) "Testing-Dashed-Words" 22string(%d) "Test(Braced)Words" 23string(%d) "Testing empty delimiters" 24string(%d) "TeSting raNgeS" 25Done 26