Is it possible to use a function/language construct like list to concat to a str variable?

– hakre Jul 16 '11 at 14:14 @hakre: Copy and past mistake ;) – Felix Kling Jul 16 '11 at 14:14 1 maybe substr(,0,-2); :) - I like the string idea. – hakre Jul 16 '11 at 14:16 @hakre: Yes I thought about that too... might be more efficient. There are several ways :) – Felix Kling Jul 16 '11 at 14:17 Yea, as ususal, and it's always nice to see some alternatives.

– hakre Jul 16 '11 at 14:19.

You can operate with arrays, their keys and values. Implode PHP Manual is helpful to concatenate values. Array_fill PHP Manual can generate your questions marks.

Some quickly typed code: $columns = array_keys($this->_data); $sql_columns = implode(', ', $columns); $sql_values = implode(', ', array_fill(0, count($columns), '? ')).

What about $sql_columns = implode(', ', array_keys($this->_data)).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions