I was going through this book on php and i was left confused what author is trying to convey.
Following is that part.
You must use quotes if you’re using interpolation to build the array index:
$age["Clone$number"]
However, don’t quote the key if you’re interpolating an array lookup:
// these are wrong
print "Hello, $person['name']";
print "Hello, $person["name"]";
// this is right
print "Hello, $person[name]";
My question is:
1) What is interpolation to build array index?
Thanks.