Code snippet help please
Posted: Fri Dec 09, 2011 4:19 am
Hi guys,
Im trying to learn PHP as I go. (The hardest way)
I have usually managed to work everything out as I encountered it but Im having some difficulty with this:
<?php echo $product['product_name'] . $product['product_attributes'] ?>
Can somebody please give me a clue as to what this means when a variable is declared with square brackets after it like this.
Im thinking it has something to do with integration with javascript (Mootools). Somehow, this code snippet produces a URL and Im tearing my hair out to understand how it does so.
All help greatly appreciated.
thanks in advance,
Paula
Im trying to learn PHP as I go. (The hardest way)
I have usually managed to work everything out as I encountered it but Im having some difficulty with this:
<?php echo $product['product_name'] . $product['product_attributes'] ?>
Can somebody please give me a clue as to what this means when a variable is declared with square brackets after it like this.
Im thinking it has something to do with integration with javascript (Mootools). Somehow, this code snippet produces a URL and Im tearing my hair out to understand how it does so.
All help greatly appreciated.
thanks in advance,
Paula