Code:
$users=array();
$cams = new SimpleXMLElement('cams.xml', null, true);
foreach ($cams as $user)
{
if(in_array(strtolower($user->username),$users))
{
echo $user->iframe_embed_revshare;
}
}
That is only going to hit the echo statement if the user name is in the array $users.
Since $users is empty ($users=array() creates an empty array) then you will never hit the echo statement.
So, you have to have a username in $users for that to work.
.