Ok so I have a problem, A class I am developing works flawlessly, however I would like to shorten some commands as the array's I am calling are too long.
Heres the current command to echo an array value:
Is there any way that I can make this short hand. I know that iconClosed will be a constantly reference value, so my natural train of thought was to achieve something like this:
but I cannot achieve this as I know it's a string to variable etc.
Is there any other way I can do this?
Heres the current command to echo an array value:
PHP:
$xml->xmlAR->achievements[0]->achievement[$c]->iconClosed[0]
Is there any way that I can make this short hand. I know that iconClosed will be a constantly reference value, so my natural train of thought was to achieve something like this:
PHP:
$xml->xmlAR->$iconClosed;
but I cannot achieve this as I know it's a string to variable etc.
Is there any other way I can do this?