- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
$output_desc_name_num= $output;
$desc_name_ar = array(
"1" => "<a href='http:\\test.com'>link</a>",
"2" => "Описание.. 2",
"3" => "Описание.. 3",
);
if($output_desc_name_num == 1){
$desc_name = $desc_name_ar[1];
}
elseif($output_desc_name_num == 2){
$desc_name = $desc_name_ar[2];
}
elseif($output_desc_name_num == 3)
$desc_name = $desc_name_ar[3];
else
$desc_name ='';
............
return $response;
Слишком мало переменных для каждого действия... + условии
MOXHATKA 04.10.2020 11:29 # −4
Sers 04.10.2020 18:31 # 0