Form Validation Callback With Extra Parameter from Array?
<p>Asking about codeigniter 3 form validation with callback.
Form validation - thats validating an array of data - in this case a group of products - and one rule has a callback. Like: </p>

<pre><code>$this-&gt;form_validation-&gt;set_rules('productid[]', 'Product ID', 'required');

$this-&gt;form_validation-&gt;set_rules('productsku[]', 'Product SKU', 'callback_sku_check'); 
</code></pre>

<p>and then the callback goes to the method: sku_check($str)</p>

<p>All that works fine, churns through and checks an array of product skus no problem. Now is there a way to pass the correct Product ID from the array to the callback method? So i could have </p>

<pre><code>sku_check($str,$productid)
</code></pre>

<p>where the product id matches the specific sku in the array?</p>