Welcome Guest, Not a member yet? Register   Sign In
Array helpp .. urgent
#2

[eluser]cahva[/eluser]
First of all, dont use count() function straight in for loops. The count should first be set in a variable and then use that. If you dont, server does the counting every iteration separately. Ok, that said, now to the problem. Try to avoid for loops as much as you can. The same in foreach:
Code:
<?php foreach ($module_permission['name'] as $k => $v): ?>
    <li>&lt;?php echo anchor($pm['class_name'][$k].'/'.$v,$v) ?&gt;</li>
&lt;?php endoforeach; ?&gt;


Messages In This Thread
Array helpp .. urgent - by El Forum - 04-28-2011, 03:43 AM
Array helpp .. urgent - by El Forum - 04-28-2011, 03:53 AM
Array helpp .. urgent - by El Forum - 04-28-2011, 04:29 AM
Array helpp .. urgent - by El Forum - 04-28-2011, 04:33 AM
Array helpp .. urgent - by El Forum - 04-28-2011, 07:24 AM
Array helpp .. urgent - by El Forum - 04-28-2011, 08:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB