Created
November 15, 2010 17:15
-
-
Save valguss/700617 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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