You don't want to convert the array to a string, you want to get the value of the array's sole element, if I read it correctly.

<?php
$foo = array( 18 => 'Something' );
$value = array_shift(...