The column() method returns the values from a single column in the input array
Example.php
<?phpusekim\present\utils\arrays\ArrayUtils;$arrayUtils =ArrayUtils::from([ ["any"=>"first",1,2,3], ["any"=>"second",4,5,6], ["any"=>"third",7,8,9]]);// Use "any" value in internal array as value of array$arrayUtils->column("any");// expected output: ["first", "second", "third"]// Use 2nd value in internal array as value,// Use "any" in internal array as key of array$arrayUtils->column(1,"any");// expected output: ["first" => 2, "second" => 5, "third" => 8]// Use value in internal array as value,// Use "any" in internal array as key of array$arrayUtils->column(null,"any");// expected output: [// "first" => ["any" => "first", 1, 2, 3],// "second" => ["any" => "second", 4, 5, 6],// "third" => ["any" => "third", 7, 8, 9]//]