Just discovered another case that my original proposal did not solve.
(With a space before 'test_id')
This results in
Fatal Error: Cannot extract token from: ' test_id < 3' (# 256)
Error in line 6993 of file 'D:\Pet\UwAmp\www\rad186\includes\include.library.inc'.
To take care of such cases, I would like to modify my original proposal to
...
$input = $where;
// Add this line to solve "Cannot extract token from" error:
$where = trim(preg_replace("/\s+/", " ", $where));
$output = array();
while (!empty($where)) {
...
[Updated on: Sun, 26 October 2014 22:27]
Report message to a moderator