K Kirino New member Dec 4, 2009 #1 I understand how {$A['b']} would be used... but the $a{'b'} seems incorrect... or at least a confusing redundancy. I mean, of course, $A{'b'} as opposed to $A['b']
I understand how {$A['b']} would be used... but the $a{'b'} seems incorrect... or at least a confusing redundancy. I mean, of course, $A{'b'} as opposed to $A['b']
D deonejuan New member Dec 4, 2009 #2 $A['b'] would be a call to an array slot with the identifyer 'b' and $a{'b'} is a special use variable. Remember that php wants whitespace to parse with. $new_var = "Sports$a{'b'}like"; which would cause php to evaluate the value in the braces before continuing the expression.
$A['b'] would be a call to an array slot with the identifyer 'b' and $a{'b'} is a special use variable. Remember that php wants whitespace to parse with. $new_var = "Sports$a{'b'}like"; which would cause php to evaluate the value in the braces before continuing the expression.