I have the following code
$arr = array(
'media[]' => "@{$image};type=image/jpeg;filename={$image}"
);
I do not know what line 2 means.
What do the []
, @
and {}
stand for?
UPDATE:
This is a code extracted from Upload images on Twitter using PHP.
Used to upload images to Twitter. I need to implement the same in Lua. Hence this question.