[Solved] How to add link in PHP text? [closed]


Hi all you have to do is replace that code with this

$website_clean = str_replace("http://", "", $values->Fields[7]->Value);
                $website_clean = str_replace("https://", "", $website_clean);
                echo "<div class="col-md-3 col-sm-12">
                    <h6>".$values->Fields[0]->Value."</h6>
                    <p class="bottom-hline"><i class="fa fa-map-marker"></i> ".$address."</p>
                    <p class="bottom-hline"><i class="fa fa-phone"></i> <a href="https://stackoverflow.com/questions/63148033/tel:".$values->Fields[6]->Value."">".$values->Fields[6]->Value."</a></p>
                    <p class="bottom-hline"><i class="fa fa-globe"></i> <a href="".$values->Fields[7]->Value."" target="_blank">".$website_clean."</a></p>
                    <p><i class="fa fa-envelope"></i> <a href="mailto:".$values->Fields[8]->Value."">".$values->Fields[8]->Value."</a></p>
                </div>";
                if($cell_count == 4){
                    $cell_count = 0;
                    echo "</div>

This will do the trick

1

solved How to add link in PHP text? [closed]