私はこれをどのように行うことができますarray_count_valuesの値をオブジェクトの配列に格納するにはどうすればよいですか?
stdClass Object
(
[Itemname] => Session #1: Tues May 31st - Fri June 10th (1-5:30PM)#1 only: 1pmADV
[Quantity] => 3
)
stdClass Object
(
[Itemname] => Session #2: Tues June 14th - Fri June 24th (9-2:00PM)#1 only: 2pmADV
[Quantity] => 2
)
stdClass Object
(
[Itemname] => Session #4: Tues July 12th - Fri July 22nd (9-2:00PM)#1 only: 1:30pmADV
[Quantity] => 2
)
、以下のようにオブジェクトの配列にこの配列を変換する必要が
Array
(
[Session #1: Tues May 31st - Fri June 10th (1-5:30PM)#1 only: 1pmADV] => 3
[Session #2: Tues June 14th - Fri June 24th (9-2:00PM)#1 only: 2pmADV] => 2
[Session #4: Tues July 12th - Fri July 22nd (9-2:00PM)#1 only: 1:30pmADV] => 2
)
、これ以下のような配列がarray_count_values機能でソートされている必要がありますか?
正常に動作しています。ありがとうございます –