Re: PHP4 to PHP3 problem

From: Date: Wed, 11 Apr 2001 09:28:06 +0000
Subject: Re: PHP4 to PHP3 problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-8468@lists.php.net to get a copy of this message
On 10 Apr 2001, at 13:49, Rob Griffiths wrote: > **50** print "<tr > bgcolor=#66FFFF><td>{$A["fname"]}</td>" . > "<td>{$A["lname"]}</td>" . " > <td>{$A["dept"]}</td>" . " > <td>{$A["manager"]}</td>" . > "<td>{$A["extension"]}</td></tr>\n"; Notation with "{" parenthesis is not used in PHP3. Use the string concatenation operator "." instead: print "some string".$array["element"]."some other string\n"; you could also use printf(), but AFAIK, this is the most safe way from the "sintactical" point of view. HTH, bye /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Fabrizio Ermini Alternate E-mail: C.so Umberto, 7 faermini@tin.it loc. Meleto Valdarno Mail on GSM: (keep it short!) 52020 Cavriglia (AR) faermini@sms.tin.it

« previous php.db (#8468) next »