Answers for "convert matrix row to column php"

PHP
1

convert matrix row to column php

public function flip($arr) {
		$out = array();
	  
		foreach ($arr as $key => $subarr) {
			foreach ($subarr as $subkey => $subvalue) {
				$out[$subkey][$key] = $subvalue;
			}
		}
	  
		return $out;
	}
Posted by: Guest on March-10-2021

Code answers related to "convert matrix row to column php"

Browse Popular Code Answers by Language