$xml = '<response>
<systime0>2324</systime0>
<iovalue0>1000000000000000000001</iovalue0>
<pwm0>0</pwm0>
<adc0>635</adc0>
<adc1>561</adc1>
<adc2>527</adc2>
<adc3>652</adc3>
<count0>0</count0>
<count1>0</count1>
<count2>0</count2>
<count3>0</count3>
<slow_info0/>
<cat_inf0/>
<cat_cnt0/>
</response>';
$data = new SimpleXMLElement($xml);
$data = str_split($data->iovalue0);
$data = implode('|', $data);
var_dump($data);
// Результат
string '1|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1' (length=43)
$users = get_users();
shuffle($users);
$result = array();
foreach($users as $q) {
$value_mail = get_the_author_meta('user_email', $q->ID);
$result[] = $value_mail;
}
var_dump($result);
$xml = '<?xml version="1.0" encoding="UTF-8"?>
<Item xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="https://vcloud.volia.com/api/vApp/vm-d9cbdcfd-44ef-449c-b727-2c992226b8a2/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml" xsi:schemaLocation="http://www.vmware.com/schema/ovf http://www.vmware.com/schema/ovf http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://www.vmware.com/vcloud/v1.5 http://vcloud.volia.com/api/v1.5/schema/master.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd">
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
<rasd:Description>Number of Virtual CPUs</rasd:Description>
<rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
<rasd:InstanceID>4</rasd:InstanceID>
<rasd:Reservation>0</rasd:Reservation>
<rasd:ResourceType>3</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
<rasd:Weight>0</rasd:Weight>
<vmw:CoresPerSocket ovf:required="false">1</vmw:CoresPerSocket>
<Link rel="edit" href="https://example.com/api/vApp/vm-d9cbdcfd-44ef-449c-b727-2c992226b8a2/virtualHardwareSection/cpu" type="application/vnd.vmware.vcloud.rasdItem+xml"/>
</Item>';
xml_parse_into_struct(xml_parser_create(), $xml, $values, $index);
var_dump($values[$index['RASD:DESCRIPTION'][0]]);
<ifModule mod_headers.c>
<FilesMatch "\.(js|css|ico|gif|jpg|jpeg|png)$">
Header set Cache-Control "max-age=604800"
</FilesMatch>
</IfModule>
echo date_format(date_create('2016-05-18'), 'd.m.Y');
echo date('d.m.Y', strtotime('2016-05-18'));
echo (new \DateTime('2016-05-18'))->format('d.m.Y');
/**
* @Route("/url/{id}")
*/
public function editAction(Upload $upload)
{
...
}
<div class="div"></div>
$(document).ready(function(){
$('div').removeClass('div').addClass('div2');
});
$arr = array(
1 => array(
"name" => "n1",
"desc" => "desc1"
),
2 => array(
"name" => "n2",
"desc" => "desc2"
),
3 => array(
"name" => "n3",
"desc" => "desc3"
)
);
$result = array(
'name' => array_column($arr, 'name'),
'desc' => array_column($arr, 'desc')
);
var_dump($result);
array (size=2)
'name' =>
array (size=3)
0 => string 'n1' (length=2)
1 => string 'n2' (length=2)
2 => string 'n3' (length=2)
'desc' =>
array (size=3)
0 => string 'desc1' (length=5)
1 => string 'desc2' (length=5)
2 => string 'desc3' (length=5)
$(window).load(function()...
$(document).ready(function()...