John Davidson

string - PHP - get same line inside row

0 comments
Message:


Text 1:


<div class="b3id-instrument-details-label">Text 1</div>

Text 2:


<div class="b3id-instrument-details-label">Text 2</div>

RESULT:


Text1
Text2

I have two identical div headers as I showed in the example but the difference is the strings inside them are different what i want is to get the content of these two lines with php



My Answer:
To get the same line inside a row in PHP, you can use the following code snippet:

php
echo '
';
echo '
';
echo 'Text 1:';
echo '
';
echo '
';


This code will create a row with a single column containing the text "Text 1:". You can customize the classes and styling as needed for your specific layout.

Rate this post

4 of 5 based on 6789 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us