配列からランダムなデータを取得することはできますか?多次元配列からランダムデータを取得するにはどうすればよいですか?
マイアレイを参照してください:
Array ( [0] => Array ( [0] => My Data [1] => Airport [2] => Md ) [1] => Array ( [0] => Live in fear [1] => Science [2] => Sc ) [2] => Array ( [0] => State History [1] => Government [2] => MP ) [3] => Array ( [0] => Real Estate [1] => Other [2] => Property ) [4] => Array ( [0] => Real State [1] => Not Sure [2] => NoData ) )
私はランダムな出力のこのタイプを必要とする...
Array ( [0] => Array ( [0] => My Data [1] => Airport [2] => Md ) [1] => Array ( [0] => Real State [1] => Not Sure [2] => NoData ) [2] => Array ( [0] => My Data [1] => Airport [2] => Md ) [3] => Array ( [0] => State History [1] => Government [2] => MP ) [4] => Array ( [0] => Live in fear [1] => Science [2] => Sc ) )
はあなただけ([2] [0]と出力の出力を参照)shuffle' – Ghost
'shuffle'はあなたに繰り返しを与えることはありません'使用することはできません – Amadan