RE: [PHP] Arrays/Hashes

2001-12-19 Thread Jerry Verhoef (UGBI)
You forgot the printf method printf(Some text %sBR\n,$myhash['mykey']); Jerry -Original Message- From: jimtronic [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 5:59 PM To: TD - Sales International Holland B.V. Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Arrays/Hashes I've

[PHP] Arrays/Hashes

2001-12-18 Thread TD - Sales International Holland B.V.
Hey there, sortta simple question... Is it just me or can't you access hashes within strings? This works... print(Some text $myarray[0]BR\n); This doesn't print(Some text $myhash['mykey']BR\n); i'm asking in relation to databases (not that that matters). If i fetch a row from the database I

Re: [PHP] Arrays/Hashes

2001-12-18 Thread jimtronic
I've noticed this, too. There are at least two things you can do to make them work... print(Some text {$myhash['mykey']}BR\n) or print(Some text .$myhash['mykey'].BR\n) jim Hey there, sortta simple question... Is it just me or can't you access hashes within strings? This works...