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
21
22
23
24
25
 
$query = $_GET['secure1']; // secure1 = 1321456456798798ds4564       string recu
		$string2 = decrypt($query); // secure=123456789secure2=987654321     string decode
 
 
		$string0 = make_safe($string2); // amp;secure=123456789amp;secure2=987654321  htmlspecialchars(addslashes(trim($str))
		$string3 = str_replace("amp;","&",$string0);// &secure=123456789&secure2=987654321   remplacament
 
		//echo $string3 ;
 
		$str = substr($string3, 1); // secure=123456789&secure2=987654321 enleve le premier charactere
 
 
		$array = array();
		$string4 = explode("&",$str); // ne marche pas
 
	//	echo $string4[0] ;
 
		foreach($string4 as $string5)
		{
			$items = explode("=", $string5);
		   $array[] = $items[0];
 
		}
		//echo $array[0];
salut
problème simple je n'arrive pas a explode un string avec séparateur '&'
je comprend pas j ai essayer beaucoup de chose mais rien marche