I am having problem with php version. My server only uses php 5.3.6 but my website files require php 5.4 and above.
Is there a way to convert the below code to be accepted by php 5.3.6?
$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'single-post-thumbnail' )**[0]**;
<?php       
    while ( $query->have_posts() ) : $query->the_post();
        $post_meta = $Listing->get_listing_meta(get_the_ID());
        $listing_options = (isset($post_meta['listing_options']) && !empty($post_meta['listing_options']) ? $post_meta['listing_options'] : "");
        $gallery_images  = (isset($post_meta['gallery_images']) && !empty($post_meta['gallery_images']) ? $post_meta['gallery_images'] : "");
        $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'single-post-thumbnail' )[0];
 
     
     
    