|
|
@@ -91,7 +91,7 @@
|
|
|
<para>
|
|
|
If the <acronym>SQL</acronym> requires variable arguments, provide placeholders in
|
|
|
the <acronym>SQL</acronym>, and utilize a combination of
|
|
|
- <methodname>vsprintf()</methodname> and <methodname>array_walk()</methodname> to
|
|
|
+ <methodname>vsprintf()</methodname> and <methodname>array_map()</methodname> to
|
|
|
inject the values into the <acronym>SQL</acronym>:
|
|
|
</para>
|
|
|
|
|
|
@@ -100,7 +100,7 @@
|
|
|
// it using $this->getAdapter().
|
|
|
$sql = vsprintf(
|
|
|
self::SELECT_FOO,
|
|
|
- array_walk($values, array($adapter, 'quoteInto'))
|
|
|
+ array_map(array($adapter, 'quoteInto'), $values)
|
|
|
);
|
|
|
]]></programlisting>
|
|
|
</sect3>
|