when to duplicate string using add_index_string?

From: Date: Thu, 08 Feb 2001 12:20:00 +0000
Subject: when to duplicate string using add_index_string?
Groups: php.dev 
Request: Send a blank email to php-dev+get-46019@lists.php.net to get a copy of this message
Hi! I'm using add_index_string and add_assoc_string to build an array, and these functions expect a 'duplicate' argument. When should I set this to 1 and when to 0? Right now I'm setting it to 1 on the first call (add_index_string) and to zero for the second (add_assoc_string). Does it matter if it is also set to 1 for the second call? Cheerio, Marc.

« previous php.dev (#46019) next »