what i need
select column1,column2,column3 from table where condition
output should be
select column1 from table where condition
i try to use explode
print_r (explode(",",$str));
Output i need
Array
[0] => SELECT column1
[1] => from
[2] => table
and so on .
but it will split into array and sql is dyanmic .
- any suggestion is most welcome.
explode()ignores the first space, seems to work on commas as well and converts part of you string to upper-case. Curious.explode(). Have you tried anything else?