note 83529 deleted from function.setcookie by felipe

From: Date: Fri, 30 May 2008 18:42:51 +0000
Subject: note 83529 deleted from function.setcookie by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-140013@lists.php.net to get a copy of this message
Note Submitter: rongzedong ---- <?php for ($i=1;$i<100;$i++) { setcookie("sss[".$i."]",$i); } echo '<pre>'; print_r($_COOKIE); echo '</pre>'; echo count($_COOKIE['sss']); ?> Array ( [sss] => Array ( [50] => 50 [51] => 51 [52] => 52 [53] => 53 [54] => 54 [55] => 55 [56] => 56 [57] => 57 [58] => 58 [59] => 59 [60] => 60 [61] => 61 [62] => 62 [63] => 63 [64] => 64 [65] => 65 [66] => 66 [67] => 67 [68] => 68 [69] => 69 [70] => 70 [71] => 71 [72] => 72 [73] => 73 [74] => 74 [75] => 75 [76] => 76 [77] => 77 [78] => 78 [79] => 79 [80] => 80 [81] => 81 [82] => 82 [83] => 83 [84] => 84 [85] => 85 [86] => 86 [87] => 87 [88] => 88 [89] => 89 [90] => 90 [91] => 91 [92] => 92 [93] => 93 [94] => 94 [95] => 95 [96] => 96 [97] => 97 [98] => 98 [99] => 99 ) ) 50 THE cookie has limit of array items ? by http://www.oo8h.com/

« previous php.notes (#140013) next »