Edit report at http://bugs.php.net/bug.php?id=52352&edit=1
ID: 52352 Updated by: [email protected] Reported by: larry dot diffey at gmail dot com Summary: SQL Like Requests For Arrays -Status: Open +Status: Bogus Type: Feature/Change Request Package: *Database Functions Operating System: Irrelevant PHP Version: Irrelevant New Comment: This works well with databases because they're indexed and have a completely different data model to variables. In PHP internally they're hash tables. Previous Comments: ------------------------------------------------------------------------ [2010-07-15 20:39:51] larry dot diffey at gmail dot com Description: ------------ It seems to me that it would make sense to at least apply the basic features of the SQL ANSI standard to php arrays that are NOT derived from another database. To start with, it could support most of the features found within SELECT, INSERT, UPDATE and DELETE at least from a single table. Support could be added later for joins and other complex SQL commands. Mimic the mysql commands in php. Suppose an array exists called $array. $qry = php_query("SELECT * FROM $array where name = "Bill"); php_fetch_array($qry); I believe such a feature would add to the overall ease of use of php, especially for newer programmers and people coming from other languages that are already familiar with SQL commands. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52352&edit=1
