Apply php "dashesToCamelCase()" function to all css styled html text with in my various php files -
here php function:
function dashestocamelcase($string, $capitalizefirstcharacter = false) { //$str = str_replace(' ', '', ucwords(str_replace('-', ' ', $string))); $string = preg_replace( '/-(.?)/e',"strtoupper('$1')", strtolower( $string ) ); if (!$capitalizefirstcharacter) { $string[0] = strtolower($string[0]); } return $string; } echo dashestocamelcase('e-f-i-l-re-t-fa');
here of html:
<header> <ul> <li><a href="index.php">efilretfa</a></li> </ul> <div id = "linkone" > <a href="http://www.efilretfa.org/"> <img src="image/maps/five.jpg"</a> </div> <?php include 'includes/menu.php'; ?> <div class="clear"></div> </header>
and here css relating title:
a:link { color: grey; background-color: white; font-size: 15px; border: 10px outset white; font-family:2em arial black; text-transform: uppercase; text-decoration: none; text-shadow : 5px silver; } a:visited { color: grey; background-color: white; font-size: 10px; border: 10px outset white; font-family:2em arial black; text-transform: uppercase; text-decoration: none; text-shadow : 1px 2px 5px silver; } a:hover{ color: white; background-color: grey; font-size: 15px; border: 10px inset white; font-family:2em arial black; text-transform: uppercase; text-decoration: red; letter-spacing: 3px; word-spacing: 3px; font-weight: bold; text-shadow : 1px 2px 5px silver; }
i apply php function text text wrapped in "a" tag, i'm unsure way best.
thanks!
mercedes
Comments
Post a Comment