git rev-parse --show-toplevel
/Applications/MAMP/htdocs/laravel_app
/storage/framework/sessions
/storage/framework/views
foreach(CIBlockSectionPropertyLink::GetArray("2", $arResult["IBLOCK_SECTION_ID"]) as $PID => $arLink) {
if ($arLink['FILTER_HINT'] <> '') {
$arLink['FILTER_HINT'] = CTextParser::closeTags($arLink['FILTER_HINT']);
$hints[$arLink['PROPERTY_ID']] = $arLink['FILTER_HINT'];
}
}
foreach ($hints as $hint => $valHint) {
foreach($arResult['DISPLAY_PROPERTIES'] as $key => &$val) {
if($hint == $val['ID']){
$val['HINT'] = $valHint;
}
}
}
foreach(CIBlockSectionPropertyLink::GetArray("2", $arResult["IBLOCK_SECTION_ID"]) as $PID => $arLink) {
if ($arLink['FILTER_HINT'] <> '') {
$arLink['FILTER_HINT'] = CTextParser::closeTags($arLink['FILTER_HINT']);
$hints[$arLink['PROPERTY_ID']] = $arLink['FILTER_HINT'];
}
}
foreach ($hints as $hint => $valHint) {
foreach($arResult['DISPLAY_PROPERTIES'] as $key => &$val) {
if($hint == $val['ID']){
$val['HINT'] = $valHint;
}
}
}
$arr1 = array(
"0" => array(
"prop_id" => 11,
"f_hint" => "HINT"
),
"1" => array(
"prop_id" => 45,
"f_hint" => "HINT"
),
"2" => array(
"prop_id" => 58,
"f_hint" => ""
)
);
$arr2 = array(
"name" => array(
"id" => 11,
"hint" => ""
),
"title" => array(
"id" => 45,
"hint" => ""
)
);
сделай массив [11 => подсказка-11, 45 => подсказка-45]тут у меня 17 массивов. а в другом около 10.
foreach ($arr1 as $key1) {
$id = $key1['prop_id'];
foreach($arr2 as $key2) {
if($key2['id'] = $id) {
$arr3 = $key2['hint'] = $key1['f_hint'];
}
}
}
origin https://github.com/Project1/laravel_vue_app.git (fetch)
origin https://github.com/Project1/laravel_vue_app.git (push)
git remote set-url origin git@github.com:Project1/laravel_vue_app.git