<?phpfunction giveMeAnArray() { return [1,2,3,4];}
$array = giveMeAnArray();
Witch programming language you interested for?!