Skip to content

Instantly share code, notes, and snippets.

@LinzardMac
Created March 27, 2013 02:27
Show Gist options
  • Save LinzardMac/5251081 to your computer and use it in GitHub Desktop.
Save LinzardMac/5251081 to your computer and use it in GitHub Desktop.
foreach($statusesray as $status)
{
if($status->type=="status")
{
do stuff
}
// this echos "photo" which is expected when the type == photo
echo $status->type;
// i know this is not working because it is "doing stuff" when the type=="photo" when i only want it to do it when type=="status"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment