accessing array data inside of an array - I want to extract the name of the photo uploaded. print_r of $_FILES yields: Files: Array ( [picture] => Array ( [name] => DSC_1802-saoirse-riona.jpg [type] => image/jpeg [tmp_name] => /tmp/phpJTspHZ [error] => 0 [size] => 76096 ) ) ...
Array - Hi Can you help me sort my array on salary $Person[$personid][salary] e.g. $Person[1][20000] $Person[2][5000] $Person[3][15000] $Person[4][10000] to $Person[2][5000] $Person[4][10000] $Person[3][15000] $Person[1][20000] Thanx
array() VS Array() - which one is recommend? seems they perform the same thing... regards, howa
Last element of array ? - I need the first, last and middle elements of a (single dimension) array during a loop which may then add 0..n elements to it so I don't know how many elements are in it the next run. Right now I use: [....] $len = count($arr); $var0 = $arr[0];...
assosiativ array - I have this array, $navbar_left = array( 'Hjem'=>'index.php', 'Borte'=>'borte.php', 'Uavgjort'=>'uavgjort.php' ); I want to loop through it, but don't know how. I've tried foreach($navbar_left as $navbar){ foreach($navbar as $key=>$value){ ...
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum