Re: [PHP] Associative arrays in strings

2001-04-23 Thread Phil Driscoll
echo "Here is a $string, {$myArray["joe"]} with $alot of PHP $variables"; -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: [PHP] Associative arrays in strings

2001-04-23 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Boget, Chris") wrote: > Now, supposing you > do have error level set to very high, you cannot do this: > > echo "Here is a $string, $myArray['joe'] with $alot of PHP $variables"; > (using single quotes) > > to stop the error. You actually ha

[PHP] Associative arrays in strings

2001-04-23 Thread Boget, Chris
We have an array: $myArray = array( "joe"=>"bob", "this"=>"that" ); I know that technically, you shouldn't do the following to print it out: echo "Here is a $string, $myArray[joe] with $alot of PHP $variables"; If you have the highest error level on, PHP will display an error though if you do