Re: Variable as an index

From: Date: Sun, 21 Dec 2008 21:59:30 +0000
Subject: Re: Variable as an index
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-284936@lists.php.net to get a copy of this message
MikeP schrieb:
I have tried putting the quotes all over and all I get is: 'Array[U]'. Try to avoid accessing the two-dimensional array $users inside a string.
Use echo's ability to accept multiple parameters: echo '<tr><td.....>', $users[$x]['U'], '</td>....'; Or by concating the string with the .-Operator: echo '<tr><td.....>'.$users[$x]['U'].'</td>....'; The first method is faster and needs less memory. -- http://bithub.net/ Synchronize and share your files over the web for free

« previous php.general (#284936) next »