Skip to content

Instantly share code, notes, and snippets.

@valguss
Created November 15, 2010 17:15
Show Gist options
  • Save valguss/700617 to your computer and use it in GitHub Desktop.
Save valguss/700617 to your computer and use it in GitHub Desktop.
<?php
//define and initiate variable
$arrayVariable = array(1,2,3,3);
foreach($arrayVariable as $variable){
//make sure there is something to output
if($variable != ""){
echo $variable;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment