这听起来很简单,但我不能。如何恢复“SALUT”一词
numbersss = TextBox2.Text.Split()
Array.Sort(numbersss)
For counter As Integer = 0 To (numbersss.Length - 1) Step 1
If counter < 1 Then
TextBox1.Text = TextBox1.Text + numbersss(counter).ToString()
Else
TextBox1.Text = TextBox1.Text + " " + numbersss(counter).ToString()
End If
Next
答案 0 :(得分:0)
只需使用array_keys然后收集值。
$keys = array_keys($din);
在此之后,您将获得下面的类似数组:
Array
(
[0] => SALUT
[1] => 0
[2] => 1
[3] => 2
[4] => 3
[5] => Y
[6] => 4
[7] => 5
[8] => 6
)
现在你需要收集:
echo $din_key = $keys[0]; //SALUT