Green Arrow
Member
Hello i need a PHP code to make certain words like: hd, pdf, dvd, etc... to appear like: HD, PDF, DVD.
@bjskid: no, if he has some text and wants to capitalize certain words in it, CSS alone won't be enough, only if he already has some sort of markup around those words. Else he needs a scripting language, like JS or PHP to find the words.
Hello i need a PHP code to make certain words like: hd, pdf, dvd, etc... to appear like: HD, PDF, DVD.
<?php
$text = array(
'hd',
'pdf',
'dvd'
);
//set array map
$output = array_map('strtoupper', $text);
?>