Re: [PHP] [solved] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
Thanks to you folks, this works even better: if($configs['access_key'] === true) { foreach($pages as $key = $string) { $pages[$key][0] = 'em'.$string[0][0].'/em'.substr($string[0], 1); } } Many thanks, :) ... Now I can sleep. :D Cheers, Micky -- PHP General Mailing List

Re: [PHP] [solved] Emphasizing first letter of string?

2006-08-22 Thread tedd
At 4:29 AM -0700 8/22/06, Micky Hulse wrote: Thanks to you folks, this works even better: if($configs['access_key'] === true) { foreach($pages as $key = $string) { $pages[$key][0] = 'em'.$string[0][0].'/em'.substr($string[0], 1); } } Many thanks, :) ... Now I can sleep. :D Cheers, Micky

Re: [PHP] [solved] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
tedd wrote: Not meaning to wake you, but you might consider removing markup from presentation via css. If so, checkout: http://www.w3schools.com/css/css_pseudo_elements.asp Ah, good point! Lol. Looking into that now... all I want is basic access-key support/styling. Thanks for the tip. :)