$emails = [
'mail_1@example.com',
'mail_2@example.com',
'mail_3@example.com',
...
'mail_100@example.com'
];
$to = array_shift($emails);
$headers = "Bcc: ".implode(',', $emails)."\r\n";
mail($to, $subject, $content, $headers);
echo array_slice($array, 2, 1)[0];
// or
echo array_values($array)[2];
<script type="text/javascript">
$(document).ready(function()
{
$('#contactTab a').click(function()
{
var that = $(this),
parent = that.parent();
$('#contactTab a span.text').text('Подробнее');
if(parent.is('.active'))
{
$(that.attr('href')).removeClass('active').addClass('fade');
that.parent().removeClass('active');
}
else
{
that.find('span.text').text('Закрыть');
that.tab('show');
}
return false;
});
});
</script>
<ul class="nav nav-tabs" role="tablist">,
<span class="text">Подробнее</span>
if(!function_exists('mb_ucfirst'))
{
function mb_ucfirst($str, $encoding = 'utf-8')
{
$firstChar = mb_substr($str, 0, 1, $encoding);
$len = mb_strlen($str, $encoding);
return mb_strtoupper($firstChar, $encoding) . mb_substr($str, 1, $len, $encoding);
}
}
^([a-z.]+@[a-z.]+\.[a-z.]+)$