PHP Code Snippet Library
Available Snippets
+ Affichage

 + Font

+ PHP_CSL_6

+ String_manipulation

+ Variables

Generic Options
+   Main page

+   Add new snippet

+   Add new category

+   Edit a category

+   Delete a category

Unique Options
+   Edit this snippet

+   Delete this snippet

+   Edit this category

+   Delete this category

Syntax for: Affichage . Font
function font($taille=1, $couleur='', $typos='Verdana, Arial, Helvetica, sans-serif'){
    $out = 'font face="'.$typos.'" size="'.$taille.'"';
    if($couleur){
        $out .= ' color='.$couleur;
    }
    return $out;
}
 
Description for: Affichage . Font
D'une simplicité incroyable, cette fonction permet d'appeler simplement la balise font.
S'utilise de la manière suivante :

$text = '<'.font().'>texte';
ou
$text = '<'.font('2','#CCFFEE').'>texte';