function(query, process)
{
console.log(query);
lang = $('#lang').val();
return $.ajax(
{
url: intelli.config.baseurl + 'glossaries/add.json',
type: 'get',
dataType: 'json',
data:
{
q: query,
lang: lang
},
success: function (data)
{
return typeof data.options == 'undefined' ? false : process(data.options);
}
}
}
members.`id` = reviews.`member_id`
if (file_exists($inc))
{
include $inc;
} else {
echo "Файл не найден";
}
$properties = array();
array_walk_recursive($rawData, function($value, $key) use(&$properties) {
if ($key === 'properties') {
$properties = $value;
}
});
<?php
$Clients = Array
(
'Client' => Array
(
'ClientDetails' => Array
(
'clientName' => '',
'clientContact' =>'',
'clientContactEmail' => 'client1@example.com',
'clientTelephone' => '',
),
'properties' => Array
(
'Property' => Array
(
0 => Array
(
'propertyid' => '',
'lastUpdateDate' => '',
'category' => '',
'Address' =>'',
)
)
),
),
'Client2' => Array
(
'ClientDetails' => Array
(
'clientName' => '',
'clientContact' =>'',
'clientContactEmail' => 'client2@example.com',
'clientTelephone' => '',
),
'properties' => Array
(
'Property' => Array
(
0 => Array
(
'propertyid' => '',
'lastUpdateDate' => '',
'category' => '',
'Address' =>'',
)
)
),
)
);
function mySearch($search, $data, $parents = array())
{
$return = [];
if(is_array($data))
{
foreach($data as $key => $value)
{
if($key === $search)
{
$return[] = array (
'key' => array_merge($parents, array($key)),
'value' => $value,
);
}
else if(is_array($value))
{
$return = array_merge($return, mySearch($search, $value, array_merge($parents, array($key))));
}
}
}
return $return;
}
header('content-type: text/html; charset=utf-8;');
echo '<pre>';
@print_r(mySearch('clientContactEmail' , $Clients));
echo '</pre>';
exit(__FILE__ .': '. __LINE__);
The installer will automatically add vagrant to your system path so that it is available in terminals. If it is not found, please try logging out and logging back in to your system (this is particularly necessary sometimes for Windows).