note 127966 added to control-structures.foreach

From: Date: Mon, 28 Nov 2022 11:18:40 +0000
Subject: note 127966 added to control-structures.foreach
Groups: php.notes 
Request: Send a blank email to php-notes+get-219922@lists.php.net to get a copy of this message
$capitals=array( "Himalchal"=>"shimla", "J&k"=>"kashmir", "Punjab"=>"chandigarh", "Uttar-pradesh"=>"lucknow", "Bihar"=>"patna" ); foreach($capitals as $state=>$capital){ echo "the capital of $state is => $capital" . "<br>"; } ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.159.161 (proxied: 117.220.10.193) ---- Manual Page -- https://php.net/manual/en/control-structures.foreach.php Edit -- https://main.php.net/note/edit/127966 Del: integrated -- https://main.php.net/note/delete/127966/integrated Del: useless -- https://main.php.net/note/delete/127966/useless Del: bad code -- https://main.php.net/note/delete/127966/bad+code Del: spam -- https://main.php.net/note/delete/127966/spam Del: non-english -- https://main.php.net/note/delete/127966/non-english Del: in docs -- https://main.php.net/note/delete/127966/in+docs Del: other reasons-- https://main.php.net/note/delete/127966 Reject -- https://main.php.net/note/reject/127966 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219922) next »