As you know, a good programmer is a lazy programmer, but I'm just lazy. My question is: Is there an easy way to print an element of array (from MySQL query) in PHP Acres Statement?
I usually do this:
echo "string start" $ array ['element'] "string end";
This works fine, I would like to have a short cut to print it, because echo sees "['element']" bit as a string in the form of a variable. I can use the list () to get all the elements, but it is not what I am doing after that.
So is there any answer there?
Thanks for reading, P>
As I I like to dislike the differences in strings extreme, I like to use echo with many arguments:
'string start' echo, $ array ['element'], 'String end';
Besides this, string conection (.
) results in better behavior with echo, because ,
is the lowest of all predecessors.
Comments
Post a Comment