note 117787 added to language.types.array

From: Date: Mon, 10 Aug 2015 09:23:13 +0000
Subject: note 117787 added to language.types.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-203300@lists.php.net to get a copy of this message
/* * Name : Aditya Mehrotra * Email: aditycse@gmail.com */ <?php //Array can have following data type in key i.e string,integer //Behaviour of array in case of array key has data type float or double $exampleArray = array(0, 1, "2.99999999" => 56, 2 => 2, 3.9999 => 3, 3 => 3.1, true => 4, false => 6, ); //array structure print_r($exampleArray); /* Array ( [0] => 6 [1] => 4 [2.99999999] => 56 [2] => 2 [3] => 3.1 ) */ //array of array keys print_r(array_keys($exampleArray)); /* Array ( [0] => 0 [1] => 1 [2] => 2.99999999 [3] => 2 [4] => 3 ) */ ---- Server IP: 72.52.91.14 Probable Submitter: 115.248.143.4 ---- Manual Page -- http://php.net/manual/en/language.types.array.php Edit -- https://master.php.net/note/edit/117787 Del: integrated -- https://master.php.net/note/delete/117787/integrated Del: useless -- https://master.php.net/note/delete/117787/useless Del: bad code -- https://master.php.net/note/delete/117787/bad+code Del: spam -- https://master.php.net/note/delete/117787/spam Del: non-english -- https://master.php.net/note/delete/117787/non-english Del: in docs -- https://master.php.net/note/delete/117787/in+docs Del: other reasons-- https://master.php.net/note/delete/117787 Reject -- https://master.php.net/note/reject/117787 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#203300) next »