From: "dirk" <[EMAIL PROTECTED]>
Try this:
var $input = array(1,2,3);
var $input2 = array();
$this->input2 = array_pad($this->input,10,1);

Well, doesn't work either:

Parse error: parse error, unexpected T_VARIABLE, expecting T_FUNCTION
in /srv/www/htdocs/stundenplan/stpoo.php on line 5

The array_pad part needs to go inside of a function. The constructor would be a good place for it.


---John Holmes...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to