Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

PHP - store multiple values with array

0 votes
12 views
added Feb 24 in PHP by lcjr Sergeant (2,320 points)
<?php

$pos  = [179,238,297,356,415,474,533,592,651,710,769,828,887,946,179,238,297,356,415,474,533,592,651,710,769,828,887,946,179,238,297,356,415,474,533,592,651,710,769,828,887,946];
$top  = [2,2,2,2,2,2,2,2,2,2,2,2,2,2,50,50,50,50,50,50,50,50,50,50,50,50,50,50,98,98,98,98,98,98,98,98,98,98,98,98];

?>

<a href="https://mysite.com/listing/<?php echo $prop['url_s'];?>?utm_source=xxxxxx&utm_medium=webapp&utm_campaign=featured_listings" id="offer<?php echo $key;?>" data-id="<?php echo $key;?>" class="offer-container absolut-position no-oldprice-set" target="_blank" style="width: 58px; height: <?php echo $thumbHeight;?>px; left: <?php echo $pos[$key];?>px; top: <?php echo $top[$key];?>px; z-index: <?php echo ($key+1);?>; opacity: 1;">
                    <div class="border-container">
                        <div class="offer-loader"></div>
                    </div>
                    <div class="shadow-container"></div>
                    <div class="offer-img-container">
                        <div style="padding: 1px !important; display: block; opacity: 1; transition-property: none; transition-duration: 0s;">
                            <div class="div-image" id="div-image-canv<?php echo $key;?>" style="background-image: url('<?php echo $prop['image'];?>'); background-position: center center; background-size: cover; background-repeat: no-repeat; height: <?php echo $thumbHeight;?>px; width: 52px;"></div>
                        </div>
                        <div class="offer-region-position absolut-position" style="bottom:0">
                            <p class="text-table">
                            <?php echo $prop['district_s_lower'];?>
                            </p>
                        </div>
                    </div>
                    <div class="background-container"></div>
                    <div class="offer-ribbon-container normal">
                        <div class="offer-ribbon">
                            <p class="text-table">
                                <span class="text-table-cell"><?php echo ucfirst($prop['type_s']);?></span>
                            </p>
                        </div>
                    </div>
                </a>

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...