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: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php