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

From: Date: Fri, 02 Nov 2001 18:11:30 +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-20313@lists.php.net to get a copy of this message
PHP has a function that may seem helpful:: 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 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 http://www.php.net/manual/en/function.mysql-fetch-assoc.php

« previous php.notes (#20313) next »