--TEST-- "ucfirst()" function --INI-- precision=14 --FILE-- --EXPECTF-- #### Basic and Various operations #### Notice: Use of undefined constant somestring - assumed 'somestring' in %s on line %d string(16) "Testing ucfirst." string(17) "1.testing ucfirst" string(11) "HELLO wORLD" string(11) "HELLO wORLD" string(1) "" string(1) "" string(2) "0" string(4) "Abcd" string(3) "Xyz" string(10) "Somestring" string(2) "-3" string(2) "-3" string(6) "-3.344" string(6) "-3.344" string(0) "" string(4) "NULL" string(1) "0" string(1) "0" string(1) "1" string(4) "TRUE" string(1) "1" string(1) "1" string(8) "1.234444" string(0) "" string(5) "FALSE" string(1) " " string(5) " " string(1) "B" string(2) "\t" string(1) " " string(2) "12" string(8) "12twelve" #### Testing Miscelleneous inputs #### --- Testing arrays --- Warning: ucfirst() expects parameter 1 to be string, array given in %s on line %d NULL --- Testing objects --- string(12) "Hello, world" --- Testing Resources --- string(6) "Stream" string(1) "0" --- Testing a longer and heredoc string --- string(639) "Abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 @#$%^&**&^%$#@!~:())))((((&&&**%$###@@@!!!~~~~@###$%^&* abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789" --- Testing a heredoc null string --- string(0) "" --- Testing simple and complex syntax strings --- string(5) "World" string(7) "World'S" Notice: Undefined variable: strS in %s on line %d string(0) "" string(6) "WorldS" string(6) "WorldS" --- Nested ucfirst() --- string(5) "Hello" #### error conditions #### Warning: ucfirst() expects exactly 1 parameter, 0 given in %s on line %d Warning: ucfirst() expects exactly 1 parameter, 2 given in %s on line %d Warning: ucfirst() expects exactly 1 parameter, 2 given in %s on line %d Done