You pass a string to the function and it returns a string with each word
starting with an uppercase.
$string = "hello world";
$new_string = ucwords($string);
echo $new_string; // Displays 'Hello World'
---John Holmes...
- Original Message -
From: "Daniel Negron/KBE" <[EMAIL PROTECTED]
DNK> I am trying to figure out how to use ucwords here :
DNK> if (submit)
DNK> $db = mysql_connect($dbhost,$dbuname,$dbpass);
DNK> mysql_select_db($dbname,$db);
DNK> ucwords($sql) < Is this correct ?
DNK> $sql = "INSERT INTO $prefix";
DNK> $sql .=
Looks like it, but you're missing the semi-colon at the end of the line.
> -Original Message-
> From: Daniel Negron/KBE [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 14, 2002 2:06 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] ucwords() usage QUICKIE
>
>
> Hi All,
>
> I am trying t
3 matches
Mail list logo