Forcing field value to render as UPPERCASE
12 posts by 3 authors in: Forums > CMS Builder
Last Post: February 15, 2010 (RSS)
By Dave - February 15, 2010
Hi Jerry,
For many php functions, you just wrap the function call around the "value". In this case, it looks like this:
And for cases when it's getting too complicated, sometimes we break it up into multiple lines and use variables so it's easier to read:
Hope that helps!
For many php functions, you just wrap the function call around the "value". In this case, it looks like this:
<?php echo strtoupper(date("D, M jS, Y", strtotime($e_blastRecord['press_release_publish_date']))) ?>
And for cases when it's getting too complicated, sometimes we break it up into multiple lines and use variables so it's easier to read:
<?php
$time = strtotime( $e_blastRecord['press_release_publish_date'] );
$date = date("D, M jS, Y", $time);
$uppercaseDate = strtoupper( $date );
echo $uppercaseDate;
?>
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com
Re: [Dave] Forcing field value to render as UPPERCASE
Thanks Dave,
I tried a lot of iterations, but obviously not those.
Best,
Jerry
I tried a lot of iterations, but obviously not those.
Best,
Jerry
The first CMS Builder reference book is now available on-line!
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php