>DansTonCode();

Tous les codes sourcespage 45

C#
 19 July, 2014 à 04:40
#113
// on the webservice client
Hashtable params = new Hashtable
{
   "IsActive", true.ToString();
   ...
};
service.someMethod(params);

//  on the webservice
if (hs["IsActive"].ToString().ToLower().Equals("true"))
{
   ...
}
PHP
 18 July, 2014 à 10:31
#129
if(($_COOKIE["Desktop"] == '1' OR $HTTP_COOKIE_VARS["Desktop"] =='1'))
{
	$desktop = 1;
}
else 
{
	$desktop = 1;
}
PHP
 16 July, 2014 à 09:44
#117
$iValNet   = 2;	   
$aValue    = explode(',', round($iValNet * 23 / 100, 2)); 
$aValue[0] += $iValNet;       
$iValGross  = $aValue[0];