Re: more issues with variales within strings

From: Date: Sun, 23 Mar 2003 10:17:59 +0000
Subject: Re: more issues with variales within strings
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140748@lists.php.net to get a copy of this message
At 04:55 23.03.2003, Dan Rossi said: --------------------[snip]-------------------- >hi guys , i am sure this worked on an earlier version of php, > > >'NOT_ALLOWED_EXTENSION' => "Not Allowed File Extension, the following >filetypes are allowed : ($this->type)\n", this is inside an array > >then i used to do > >$this->extract_filetypes($this->imgtypes); >$this->error_codes[NOT_ALLOWED_EXTENSION]; > --------------------[snip]-------------------- If you put $this->type in curly quotes it will work: $emsg = array('NOT_ALLOWED_EXTENSION' => "Not Allowed File Extension, the following filetypes are allowed : ({$this->type})\n", ); -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#140748) next »