Bjr,
je ne comprends pas pourquoi j 'ai ce message d 'erreur :
Fatal error: Cannot redeclare htmlenti() (previously declared in...
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 class t1 extends analyse{ protected $val = 1; protected function _htmlentites( & $tab ){ function htmlenti( & $item ){ $item = htmlentities( $item, ENT_QUOTES ); } array_walk ( $tab , 'htmlenti' ); } function tri_c ( & $arg ){ $this->_htmlentites( $arg ); $this->val = $arg; } } $param = array( 'label'=>array('fichier','dossier'), 'value'=>array( '"rr"', '<ee>' )); $a = new t1(); $a->tri_c( $param['value'] ); $a->tri_c( $param['label'] );
Partager