I have this echo:
<?=$item['Field']?>
I'm trying to get every 1st letter capitalized.
I tried this
<?$item = ucwords(strtolower('Field'));?>
Help would be greatly appreciated
Try that:
<?$item_capitalize = ucwords(strtolower($item['Field']));?>
I think you want one of the following
<?= $item[ucwords(strtolower('Field'))]; ?>
<?= ucwords(strtolower($item['Field'])); ?>
If you want to print it, don't assign it.
<?=ucwords(strtolower($item['Field']));?>