On Wed, Aug 18, 2004 at 08:54:56PM +0200,  Fabrice Vignals wrote:
> Good new for this feature.
> 
> I think array in arguments is not so good, for documentation + 
> comprehension + syntax code
> 
> Documentation approximate Syntax : 
> bool SetCookie( string $name, [string $value], [array $array('Max-Age'=> int
> $max-age, ['Comment'=> string $comment], 
> > ['Path'=> relative||absolute path '/'] )] )

I disagree.  Arrays add significant flexibility, thereby easing long 
term use and comprehension.   Sample docs:

  bool SetCookie( string $name, [string $value], [array $options])

  The $options array is an associative array which can contain
  any combination of the following elements:
     Max-Age  integer  blah blah
     Comment  string   blah blah
     etc...

Then provide a usage example.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to