Posted by Iain Adams on 08/10/06 16:26
Hey i have a loop like so,
foreach($users as $user)
{
foreach($syncWebUsers as $sync)
{
//user already synched
if($sync['crmid'] == $user[$crmid])
{
echo "User Already
Synched".$user[$crmid];
unset($user);
}
}
}
Now I wanted this to completely remove the sub array $user from $users
but when $users remains unchanged when I print_r it. I guess this is to
do with referencing things. Does anyone know how to combat this problem.
Navigation:
[Reply to this message]
|