note 61262 added to function.compact

From: Date: Sun, 29 Jan 2006 20:04:03 +0000
Subject: note 61262 added to function.compact
Groups: php.notes 
Request: Send a blank email to php-notes+get-102680@lists.php.net to get a copy of this message
The german translation of the example is wrong. $result would be an empty array. It should be like this instead: <?php $Stadt = 'Frankfurt am Main'; $Bundesland = 'Hessen'; $Veranstaltung = 'Ambiente'; $location_vars = array('Stadt', 'Bundesland'); $result = compact('Veranstaltung', 'nichts_hier', $location_vars); ?> Which would result in Array ( [Veranstaltung] => Ambiente [Stadt] => Frankfurt am Main [Bundesland] => Hessen ) ---- Server IP: 212.124.37.9 Probable Submitter: 80.142.142.116 ---- Manual Page -- http://www.php.net/manual/en/function.compact.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61262 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61262&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61262&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61262&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61262&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61262&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61262&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61262&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61262&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102680) next »