|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2002-06-17 07:38 UTC] hholzgra@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 14:00:01 2025 UTC | 
ucwords('') returns a type of boolean but it should return ''. This script demonstrates the problem: <?php $s="a bc"; $s2=ucwords($s); echo gettype($s2).":".$s2; $s=''; $s2=ucwords($s); echo gettype($s2).":".$s2; ?> To get around it I do this after the ucwords() call: if(!$s2)$s2='';