PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I guess this is called a multidimensional array? I got it to work but it slowed my page down adding the $hlinksrow array. I assume because it is having to run 40 mysql queries. I am trying to have it just run 1 query and pull 40 entries from the database but I can't get it to work. How do you put an array inside an array? By the way, this code is making links for my page and randomizing the anchor text.
weirdan@office:~$ php -r 'echo "something", "something_else\n";'
somethingsomething_else
weirdan@office:~$ php -r '$q = ("something", "something_else\n"); echo $q;'
PHP Parse error: parse error in Command line code on line 1
Parse error: parse error in Command line code on line 1
[update]
That is, here is excerpt from the manual:
PHP Manual wrote:
echo() is not actually a function (it is a language construct) so you are not required to use parentheses with it. In fact, if you want to pass more than one parameter to echo, you must not enclose the parameters within parentheses.