Re: cvs: phpdoc /en/reference/array/functions array-combine.xml array-count-values.xml array-diff-assoc.xml array-diff.xml array-filter.xml
array-flip.xml array-intersect-assoc.xml array-int

From: Date: Sun, 17 Aug 2003 12:45:06 +0000
Subject: Re: cvs: phpdoc /en/reference/array/functions array-combine.xml array-count-values.xml array-diff-assoc.xml array-diff.xml array-filter.xml
array-flip.xml array-intersect-assoc.xml array-int
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969355869@lists.php.net to get a copy of this message
On Sun, 17 Aug 2003, Heilig (Cece) Szabolcs wrote: > > actually, array and return are language constructs, so they should have > > the space, like: > > > array ('foo'); > > That elements are lang.contructs, but looks like as functions. > So, i checked PEAR codes. All PEAR codes (including class Pear > in PEAR.php) handles array() as functions, without spaces before > opening bracket. It's still wrong :) array and return are not functions, they might look like them, but they aren't. The whole point of not using a space between functionname and parameters, and using a space with constructs is that you then can easily seperate them. Derick -- "Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails." ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ -------------------------------------------------------------------------

« previous php.doc (#969355869) next »