Re: Variable as an index

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux