note 14731 modified in function.mysql-fetch-assoc by philip

From: Date: Sun, 07 Oct 2001 07:13:29 +0000
Subject: note 14731 modified in function.mysql-fetch-assoc by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-18655@lists.php.net to get a copy of this message
PHP has a function for the last 2 comments : extract($row); This will create local variables from an assoc array using the key for the var name. $foo["bar"] = 1; extract($foo); echo $bar; // is 1 --was-- PHP already has a function for the last 2 comments. extract( $row ); will create local variables from an assoc array using the key for the var name. $foo["bar"] = 1; extract($foo); echo $bar; // is 1 http://www.php.net/manual/en/function.mysql-fetch-assoc.php

« previous php.notes (#18655) next »