On Fri, 10 Sep 2004 20:09:55 +0200, dirk <[EMAIL PROTECTED]> wrote: > can anyone explain to me, why I can't resize an array inside a class? > Sample Code: > > <?php > class Liste { > var $input = array (1,2,3); > var $input2 = array_pad ($input,10, 1); > } > ?> > > Output: > Parse error: parse error, unexpected '(', expecting ',' or ';' in > /srv/www/htdocs/stundenplan/stpoo.php on line 4
Did you try var $input2 = array_pad($this->input, 10, 1); -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php