Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $civ_licenses = array();
- $civ_licenses = explode("],[", $row["civ_licenses"]);
- $civ_licenses = str_replace("]]\"","",$civ_licenses);
- $civ_licenses = str_replace("\"[[","",$civ_licenses);
- $civ_licenses = str_replace("`","",$civ_licenses);
- //CREATING OUTPUT
- for ( $x = 0; $x < count ($civ_licenses); $x++){
- //if($x%2 !== 0){
- // echo "<p>";
- //}
- if(strpos($civ_licenses[$x], "1")!==false){
- echo "<span class='label label-success' style='margin-right:3px; line-height:2;'>".substr($civ_licenses[$x],0,-2)."</span> ";
- }
- else{
- echo "<span class='label label-danger' style='margin-right:3px; line-height:2;'>".substr($civ_licenses[$x],0,-2)."</span> ";
- }
- //if($x%2 == 0){
- // echo "</p>";
- //}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement