Parse SELECT clause of SQL queries into a PHP array

后端 未结 2 690
小蘑菇
小蘑菇 2020-12-07 03:48

This is more for analyzing a query in PHP BEFORE it\'s sent to the server. Very complicated why im doing this, so i\'d rather not go into the reason for this.

In PHP

2条回答
  •  隐瞒了意图╮
    2020-12-07 04:39

    For anyone coming across this question in the future someone has already gone to the trouble of writting an SQL parser in PHP.

    At present it supports SELECT, INSERT, UPDATE, DELETE and REPLACE statements.

提交回复
热议问题