I'm trying create a string variable ($onlyFirstObject) that only contains the first item in the string array ($objectsArray).
string $objectsArray[] = ls -selection
;
string $onlyFirstObject = $curvesArray[0];
This doesn't work. What's the correct way to get only the first item in a string array, and store it in a string variable?