note 83496 added to book.array

From: Date: Wed, 28 May 2008 15:23:27 +0000
Subject: note 83496 added to book.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-139947@lists.php.net to get a copy of this message
For newbies like me. Creating new arrays:- //Creates a blank array. $theVariable = array(); //Creates an array with elements. $theVariable = array("A", "B", "C"); //Creating Associaive array. $theVariable = array(1 => "http//google.com", 2=> "http://yahoo.com"); //Creating Associaive array with named keys $theVariable = array("google" => "http//google.com", "yahoo"=> "http://yahoo.com"); Note: New value can be added to the array as shown below. $theVariable[] = "D"; $theVariable[] = "E"; ---- Server IP: 59.162.86.33 Probable Submitter: 59.94.79.101 ---- Manual Page -- http://www.php.net/manual/en/book.array.php Edit -- https://master.php.net/note/edit/83496 Del: integrated -- https://master.php.net/note/delete/83496/integrated Del: useless -- https://master.php.net/note/delete/83496/useless Del: bad code -- https://master.php.net/note/delete/83496/bad+code Del: spam -- https://master.php.net/note/delete/83496/spam Del: non-english -- https://master.php.net/note/delete/83496/non-english Del: in docs -- https://master.php.net/note/delete/83496/in+docs Del: other reasons-- https://master.php.net/note/delete/83496 Reject -- https://master.php.net/note/reject/83496 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#139947) next »