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