Is it possible to have a variable in an array as a value in PHP. For example:
'arraykey' => "$varname",
It does not seem to work and I can’t find any info about this anywhere. Maybe because its just not possible? Any insight is appreciated. Thanks.
Do you mean:
There are lots of use-cases in the spec: http://php.net/manual/en/language.types.array.php