if($( "ul li:last-child" ).css('display') == 'block')/**
 * @ param string $server
 * @ param int $port
 * @ param int $limit
 * @ return array
 */
public function getMemcacheKeys ($server, $port, $limit = 10000)
{
    $keysFound = array();
    $options = $this->_options;
    $server = $options['servers'][0];
    $memcache = new Memcache;
    $memcache->connect($server, $port = 11211, 5);
    $slabs = $memcache->getExtendedStats('slabs');
    foreach ($slabs as $serverSlabs) {
        foreach ($serverSlabs as $slabId => $slabMeta) {
            try {
                $cacheDump = $memcache->getExtendedStats('cachedump', (int) $slabId, 1000);
            } catch (Exception $e) {
                continue;
            }
            if (!is_array($cacheDump)) {
                continue;
            }
            foreach ($cacheDump as $dump) {
                if (!is_array($dump)) {
                    continue;
                }
                foreach ($dump as $key => $value) {
                    $keysFound[] = $key;
                    if (count($keysFound) == $limit) {
                        return $keysFound;
                    }
                }
            }
        }
    }
    return $keysFound;
}<?php
$foo = 'bar'; // переменная
?><div class="row">
                <div class="col-xs-6 col-sm-3 col-md-2 col-lg-2">
            <a href="http://igas.com.ua/brands/6" title="AllEnergo, Олэнерго" class="thumbnail"> 
                <img src="http://igas.com.ua/img/brands/allenergo.png" style="width:160px;" alt="AllEnergo">
            </a>
        </div>
                <div class="col-xs-6 col-sm-3 col-md-2 col-lg-2">
            <a href="http://igas.com.ua/brands/22" title="Amic, Amic Energy" class="thumbnail"> 
                <img src="http://igas.com.ua/img/brands/amic.png" style="width:160px;" alt="Amic">
            </a>
        </div>
                <div class="col-xs-6 col-sm-3 col-md-2 col-lg-2">
            <a href="http://igas.com.ua/brands/16" title="ANP, Альфа-Нафта" class="thumbnail"> 
                <img src="http://igas.com.ua/img/brands/anp.png" style="width:160px;" alt="ANP">
            </a>
        </div>
...