$longString = "Давно выяснено, что при оценке дизайна и композиции читаемый текст мешает сосредоточиться. Lorem Ipsum используют потому, что тот обеспечивает более или менее стандартное заполнение шаблона.";
$truncated = substr($longString,0,strpos($longString,' ',30));
foreach ($modifications->find('tbody tr') as $k => $size) {
...
}
foreach ($modifications->find('tbody tr') as $k => $size) {
$span = $size->find('.data-rim span')[0];
print_r($span->attr['data-rim']);
}
function get_client_ip() {
$ipaddress = '';
if (isset($_SERVER['HTTP_CLIENT_IP']))
$ipaddress = $_SERVER['HTTP_CLIENT_IP'];
else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))
$ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
else if(isset($_SERVER['HTTP_X_FORWARDED']))
$ipaddress = $_SERVER['HTTP_X_FORWARDED'];
else if(isset($_SERVER['HTTP_FORWARDED_FOR']))
$ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];
else if(isset($_SERVER['HTTP_FORWARDED']))
$ipaddress = $_SERVER['HTTP_FORWARDED'];
else if(isset($_SERVER['REMOTE_ADDR']))
$ipaddress = $_SERVER['REMOTE_ADDR'];
else
$ipaddress = 'UNKNOWN';
return $ipaddress;
}
$post->IP = get_client_ip()
<script>
var data5 = [{
data: [<?=coords?>],
label: 'Депозиты',
points: {
show: true,
radius: 6
},
splines: {
show: true,
tension: 0.45,
lineWidth: 5,
fill: 0
}
}
......
</script>