miniu Posted March 16, 2010 Share Posted March 16, 2010 How to change the code, that the names (fname and lname) will comin out as uppercaps? <TD align="left"><font color="<?=$col?>"><? echo stripslashes($row->fname); ?></font></TD> <TD align="left"><font color="<?=$col?>"><? echo stripslashes($row->lname); ?></font></TD> Link to comment https://forums.phpfreaks.com/topic/195500-caps-in-stripslashes/ Share on other sites More sharing options...
dennismonsewicz Posted March 16, 2010 Share Posted March 16, 2010 To change them to upper use strtoupper http://php.net/manual/en/function.strtoupper.php <TD align="left"><font color="<?=$col?>"><? echo stripslashes(strtoupper($row->fname)); ?></font></TD> <TD align="left"><font color="<?=$col?>"><? echo stripslashes(strtoupper($row->lname)); ?></font></TD> Link to comment https://forums.phpfreaks.com/topic/195500-caps-in-stripslashes/#findComment-1027316 Share on other sites More sharing options...
miniu Posted March 16, 2010 Author Share Posted March 16, 2010 thanx Link to comment https://forums.phpfreaks.com/topic/195500-caps-in-stripslashes/#findComment-1027320 Share on other sites More sharing options...
trq Posted March 17, 2010 Share Posted March 17, 2010 Did I not answer this yesterday? Link to comment https://forums.phpfreaks.com/topic/195500-caps-in-stripslashes/#findComment-1027464 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.