RE: [PHP] Pulling variables from a URL

From: Date: Wed, 15 Oct 2003 11:54:00 +0000
Subject: RE: [PHP] Pulling variables from a URL
Groups: php.general 
Request: Send a blank email to php-general+get-166195@lists.php.net to get a copy of this message
On 14 October 2003 18:59, Carl Furst contributed these pearls of wisdom: > double quotes say "interpolate $variables". However I have > discovered (at > least in php 4.2.3) that you cannot use subarrays in double > quotes like "my > var in the subarray subarray: $array['subarray']['subarray']" > That doesn't > seem to work.. it comes up blank. This is what the complex version of variable interpolation, using {}, is for. echo "complex interpolation of {$array['sub1']['sub2']}"; will work. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#166195) next »