Bonjour, voici mon code et l'aerreur.

Merci de m'aider.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
class Html 
{	
	static function doctype($type)
	{ 
		        echo "<html lang=fr>";
	}
 
	static function title($title) {
		echo '<title>'.$title.'</title>';
	}
 
	static function css($file) {
		echo '<link rel="stylesheet" type="text/css" href="'.CSS.'/'.$file.'.css" media="screen" />';
	}
 
	static function imgTuto($file) {
	    echo IMG_TUTO.'/'.$file.'.png" />';
	}
}
Erreur :
Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/espacedey/www/public/helper/Html.php on line 4
Cordialement.