Date: 10/22/07 (PHP Community) Keywords: no keywords
$query .= vsprintf('%s=:%s'.str_repeat(', %s=:%s',count($propNames)-1), array_merge(array(array_shift($propNames)), $propNames));It could be worse...
Source: http://community.livejournal.com/php/592784.html