Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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;
	}
 
PREVIOUS NEXT
Tagged: #convert #matrix #row #column #php
ADD COMMENT
Topic
Name
8+8 =