salutation,

je voudrais mettre un 'ucwords();' dans un tableau mais je n'y arrive pas apprès plusieur essais ...

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   
 
$tab = array('chien','chat','girafe'); 
 
function tableau($array) 
	{   
 
		sort ($array);
 
  		foreach ($array as $value) 
  				{ 
					echo $value.'<br />'; 
				}   
 
	} 
 
 
tableau($tab); 
 
?>
ou mettre mon 'ucwords ()' ??

PS: j'ai 14ans et je débute dsl si ca vous parrez simple ^^